Struct PrimitiveType
pub struct PrimitiveType { /* private fields */ }
Implementations§
§impl PrimitiveType
impl PrimitiveType
pub const POINTS: PrimitiveType = _
pub const POINTS: PrimitiveType = _
Godot enumerator name: PRIMITIVE_POINTS
pub const LINES: PrimitiveType = _
pub const LINES: PrimitiveType = _
Godot enumerator name: PRIMITIVE_LINES
pub const LINE_STRIP: PrimitiveType = _
pub const LINE_STRIP: PrimitiveType = _
Godot enumerator name: PRIMITIVE_LINE_STRIP
pub const TRIANGLES: PrimitiveType = _
pub const TRIANGLES: PrimitiveType = _
Godot enumerator name: PRIMITIVE_TRIANGLES
pub const TRIANGLE_STRIP: PrimitiveType = _
pub const TRIANGLE_STRIP: PrimitiveType = _
Godot enumerator name: PRIMITIVE_TRIANGLE_STRIP
Trait Implementations§
§impl Clone for PrimitiveType
impl Clone for PrimitiveType
§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
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 more§impl Debug for PrimitiveType
impl Debug for PrimitiveType
§impl EngineEnum for PrimitiveType
impl EngineEnum for PrimitiveType
§impl FromGodot for PrimitiveType
impl FromGodot for PrimitiveType
§fn try_from_godot(
via: <PrimitiveType as GodotConvert>::Via,
) -> Result<PrimitiveType, ConvertError>
fn try_from_godot( via: <PrimitiveType as GodotConvert>::Via, ) -> Result<PrimitiveType, ConvertError>
Converts the Godot representation to this type, returning
Err
on failure.§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant
, returning Err
on failure.§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
§impl GodotConvert for PrimitiveType
impl GodotConvert for PrimitiveType
§impl Hash for PrimitiveType
impl Hash for PrimitiveType
§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
§impl ToGodot for PrimitiveType
impl ToGodot for PrimitiveType
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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