pub struct StaticField {
pub inner: Field,
pub default: Cow<'static, str>,
}Expand description
Type information for a lua class field
Fields§
§inner: Field§default: Cow<'static, str>Implementations§
Source§impl StaticField
impl StaticField
Trait Implementations§
Source§impl Clone for StaticField
impl Clone for StaticField
Source§fn clone(&self) -> StaticField
fn clone(&self) -> StaticField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticField
impl Debug for StaticField
Source§impl Hash for StaticField
impl Hash for StaticField
Source§impl Ord for StaticField
impl Ord for StaticField
Source§fn cmp(&self, other: &StaticField) -> Ordering
fn cmp(&self, other: &StaticField) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StaticField
impl PartialEq for StaticField
Source§fn eq(&self, other: &StaticField) -> bool
fn eq(&self, other: &StaticField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StaticField
impl PartialOrd for StaticField
impl Eq for StaticField
impl StructuralPartialEq for StaticField
Auto Trait Implementations§
impl Freeze for StaticField
impl RefUnwindSafe for StaticField
impl Send for StaticField
impl Sync for StaticField
impl Unpin for StaticField
impl UnsafeUnpin for StaticField
impl UnwindSafe for StaticField
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more