Struct godot::classes::rendering_server::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
pub const MAX: PrimitiveType = _
pub const MAX: PrimitiveType = _
Godot enumerator name: PRIMITIVE_MAX
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 IndexEnum for PrimitiveType
impl IndexEnum for PrimitiveType
§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
§fn 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 ==
.§impl ToGodot for PrimitiveType
impl ToGodot for PrimitiveType
§fn to_godot(&self) -> <PrimitiveType as GodotConvert>::Via
fn to_godot(&self) -> <PrimitiveType as GodotConvert>::Via
Converts this type to the Godot type by reference, usually by cloning.
§fn into_godot(self) -> Self::Via
fn into_godot(self) -> Self::Via
Converts this type to the Godot type. Read more
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)