pub struct EnumeratorShape {
pub name: CowStr,
pub value: Option<i64>,
}Expand description
Describes a single enumerator entry: display name and ordinal value. Used in GodotShape::Enum.
Fields§
§name: CowStr§value: Option<i64>Ordinal value. None for string-backed enums (hint string omits ordinals: "Grass,Rock,Water").
Implementations§
Trait Implementations§
Source§impl Clone for EnumeratorShape
impl Clone for EnumeratorShape
Source§fn clone(&self) -> EnumeratorShape
fn clone(&self) -> EnumeratorShape
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for EnumeratorShape
impl RefUnwindSafe for EnumeratorShape
impl Send for EnumeratorShape
impl Sync for EnumeratorShape
impl Unpin for EnumeratorShape
impl UnsafeUnpin for EnumeratorShape
impl UnwindSafe for EnumeratorShape
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