Struct objc2_foundation::NSInsertionPosition
source · #[repr(transparent)]pub struct NSInsertionPosition(pub NSUInteger);
Available on crate feature
NSScriptObjectSpecifiers
only.Tuple Fields§
§0: NSUInteger
Implementations§
source§impl NSInsertionPosition
impl NSInsertionPosition
pub const NSPositionAfter: Self = _
pub const NSPositionBefore: Self = _
pub const NSPositionBeginning: Self = _
pub const NSPositionEnd: Self = _
pub const NSPositionReplace: Self = _
Trait Implementations§
source§impl Clone for NSInsertionPosition
impl Clone for NSInsertionPosition
source§fn clone(&self) -> NSInsertionPosition
fn clone(&self) -> NSInsertionPosition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NSInsertionPosition
impl Debug for NSInsertionPosition
source§impl Encode for NSInsertionPosition
impl Encode for NSInsertionPosition
source§impl Hash for NSInsertionPosition
impl Hash for NSInsertionPosition
source§impl Ord for NSInsertionPosition
impl Ord for NSInsertionPosition
source§fn cmp(&self, other: &NSInsertionPosition) -> Ordering
fn cmp(&self, other: &NSInsertionPosition) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NSInsertionPosition
impl PartialEq for NSInsertionPosition
source§fn eq(&self, other: &NSInsertionPosition) -> bool
fn eq(&self, other: &NSInsertionPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NSInsertionPosition
impl PartialOrd for NSInsertionPosition
source§fn partial_cmp(&self, other: &NSInsertionPosition) -> Option<Ordering>
fn partial_cmp(&self, other: &NSInsertionPosition) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RefEncode for NSInsertionPosition
impl RefEncode for NSInsertionPosition
source§const ENCODING_REF: Encoding = _
const ENCODING_REF: Encoding = _
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSInsertionPosition
impl Eq for NSInsertionPosition
impl StructuralPartialEq for NSInsertionPosition
Auto Trait Implementations§
impl Freeze for NSInsertionPosition
impl RefUnwindSafe for NSInsertionPosition
impl Send for NSInsertionPosition
impl Sync for NSInsertionPosition
impl Unpin for NSInsertionPosition
impl UnwindSafe for NSInsertionPosition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.