Struct gdnative_bindings::tile_map::HalfOffset
source · pub struct HalfOffset(pub i64);
Tuple Fields§
§0: i64
Implementations§
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 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 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<HalfOffset> for HalfOffset
impl PartialEq<HalfOffset> for HalfOffset
source§fn eq(&self, other: &HalfOffset) -> bool
fn eq(&self, other: &HalfOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<HalfOffset> for HalfOffset
impl PartialOrd<HalfOffset> for HalfOffset
source§fn partial_cmp(&self, other: &HalfOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &HalfOffset) -> 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 moreimpl Copy for HalfOffset
impl Eq for HalfOffset
impl StructuralEq for HalfOffset
impl StructuralPartialEq for HalfOffset
Auto Trait Implementations§
impl RefUnwindSafe for HalfOffset
impl Send for HalfOffset
impl Sync for HalfOffset
impl Unpin for HalfOffset
impl UnwindSafe for HalfOffset
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.