pub struct HalfOffset(pub i64);Tuple Fields§
§0: i64Implementations§
Source§impl HalfOffset
impl HalfOffset
pub const X: HalfOffset
pub const Y: HalfOffset
pub const DISABLED: HalfOffset
pub const NEGATIVE_X: HalfOffset
pub const NEGATIVE_Y: HalfOffset
Trait Implementations§
Source§impl Clone for HalfOffset
impl Clone for HalfOffset
Source§fn clone(&self) -> HalfOffset
fn clone(&self) -> HalfOffset
Returns a duplicate 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 HalfOffset
impl Debug for HalfOffset
Source§impl From<HalfOffset> for i64
impl From<HalfOffset> for i64
Source§fn from(v: HalfOffset) -> Self
fn from(v: HalfOffset) -> Self
Converts to this type from the input type.
Source§impl From<i64> for HalfOffset
impl From<i64> for HalfOffset
Source§impl FromVariant for HalfOffset
impl FromVariant for HalfOffset
fn from_variant(v: &Variant) -> Result<Self, FromVariantError>
Source§impl Hash for HalfOffset
impl Hash for HalfOffset
Source§impl Ord for HalfOffset
impl Ord for HalfOffset
Source§fn cmp(&self, other: &HalfOffset) -> Ordering
fn cmp(&self, other: &HalfOffset) -> 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 HalfOffset
impl PartialEq for HalfOffset
Source§impl PartialOrd for HalfOffset
impl PartialOrd for HalfOffset
impl Copy for HalfOffset
impl Eq for HalfOffset
impl StructuralPartialEq for HalfOffset
Auto Trait Implementations§
impl Freeze for HalfOffset
impl RefUnwindSafe for HalfOffset
impl Send for HalfOffset
impl Sync for HalfOffset
impl Unpin for HalfOffset
impl UnwindSafe for HalfOffset
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.