Struct TextureSliceType
pub struct TextureSliceType { /* private fields */ }
Implementations§
§impl TextureSliceType
impl TextureSliceType
pub const SLICE_2D: TextureSliceType = _
pub const SLICE_2D: TextureSliceType = _
Godot enumerator name: TEXTURE_SLICE_2D
pub const CUBEMAP: TextureSliceType = _
pub const CUBEMAP: TextureSliceType = _
Godot enumerator name: TEXTURE_SLICE_CUBEMAP
pub const SLICE_3D: TextureSliceType = _
pub const SLICE_3D: TextureSliceType = _
Godot enumerator name: TEXTURE_SLICE_3D
Trait Implementations§
§impl Clone for TextureSliceType
impl Clone for TextureSliceType
§fn clone(&self) -> TextureSliceType
fn clone(&self) -> TextureSliceType
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 TextureSliceType
impl Debug for TextureSliceType
§impl EngineEnum for TextureSliceType
impl EngineEnum for TextureSliceType
§impl FromGodot for TextureSliceType
impl FromGodot for TextureSliceType
§fn try_from_godot(
via: <TextureSliceType as GodotConvert>::Via,
) -> Result<TextureSliceType, ConvertError>
fn try_from_godot( via: <TextureSliceType as GodotConvert>::Via, ) -> Result<TextureSliceType, 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 TextureSliceType
impl GodotConvert for TextureSliceType
§impl Hash for TextureSliceType
impl Hash for TextureSliceType
§impl PartialEq for TextureSliceType
impl PartialEq for TextureSliceType
§impl ToGodot for TextureSliceType
impl ToGodot for TextureSliceType
§type ToVia<'v> = i32
type ToVia<'v> = i32
Target type of
to_godot()
, which differs from Via
for pass-by-reference types.§fn to_godot(&self) -> <TextureSliceType as ToGodot>::ToVia<'_>
fn to_godot(&self) -> <TextureSliceType as ToGodot>::ToVia<'_>
Converts this type to the Godot type by reference, usually by cloning.
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
impl Copy for TextureSliceType
impl Eq for TextureSliceType
impl StructuralPartialEq for TextureSliceType
Auto Trait Implementations§
impl Freeze for TextureSliceType
impl RefUnwindSafe for TextureSliceType
impl Send for TextureSliceType
impl Sync for TextureSliceType
impl Unpin for TextureSliceType
impl UnwindSafe for TextureSliceType
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§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
)