Struct gdnative_bindings::visual_server::PrimitiveType
source · [−]pub struct PrimitiveType(pub i64);Tuple Fields
0: i64Implementations
sourceimpl PrimitiveType
impl PrimitiveType
pub const POINTS: PrimitiveType = _
pub const LINES: PrimitiveType = _
pub const LINE_STRIP: PrimitiveType = _
pub const LINE_LOOP: PrimitiveType = _
pub const TRIANGLES: PrimitiveType = _
pub const TRIANGLE_STRIP: PrimitiveType = _
pub const TRIANGLE_FAN: PrimitiveType = _
pub const MAX: PrimitiveType = _
Trait Implementations
sourceimpl Clone for PrimitiveType
impl Clone for PrimitiveType
sourcefn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PrimitiveType
impl Debug for PrimitiveType
sourceimpl From<PrimitiveType> for i64
impl From<PrimitiveType> for i64
sourcefn from(v: PrimitiveType) -> Self
fn from(v: PrimitiveType) -> Self
Converts to this type from the input type.
sourceimpl From<i64> for PrimitiveType
impl From<i64> for PrimitiveType
sourceimpl Hash for PrimitiveType
impl Hash for PrimitiveType
sourceimpl Ord for PrimitiveType
impl Ord for PrimitiveType
sourcefn cmp(&self, other: &PrimitiveType) -> Ordering
fn cmp(&self, other: &PrimitiveType) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PrimitiveType> for PrimitiveType
impl PartialEq<PrimitiveType> for PrimitiveType
sourcefn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl PartialOrd<PrimitiveType> for PrimitiveType
impl PartialOrd<PrimitiveType> for PrimitiveType
sourcefn partial_cmp(&self, other: &PrimitiveType) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimitiveType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralEq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.