pub struct TypedClass {
pub type_doc: Option<Cow<'static, str>>,
pub derives: Vec<String>,
pub fields: BTreeMap<Index, Field>,
pub static_fields: BTreeMap<Index, StaticField>,
pub meta_fields: BTreeMap<Index, Field>,
pub static_meta_fields: BTreeMap<Index, StaticField>,
pub methods: BTreeMap<Index, Func>,
pub meta_methods: BTreeMap<Index, Func>,
pub functions: BTreeMap<Index, Func>,
pub meta_functions: BTreeMap<Index, Func>,
}Fields§
§type_doc: Option<Cow<'static, str>>§derives: Vec<String>§fields: BTreeMap<Index, Field>§static_fields: BTreeMap<Index, StaticField>§meta_fields: BTreeMap<Index, Field>§static_meta_fields: BTreeMap<Index, StaticField>§methods: BTreeMap<Index, Func>§meta_methods: BTreeMap<Index, Func>§functions: BTreeMap<Index, Func>§meta_functions: BTreeMap<Index, Func>Implementations§
Source§impl TypedClass
impl TypedClass
Sourcepub fn is_meta_empty(&self) -> bool
pub fn is_meta_empty(&self) -> bool
Check if any of there are any meta fields, functions, or methods present
Trait Implementations§
Source§impl Clone for TypedClass
impl Clone for TypedClass
Source§fn clone(&self) -> TypedClass
fn clone(&self) -> TypedClass
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 TypedClass
impl Debug for TypedClass
Source§impl Default for TypedClass
impl Default for TypedClass
Source§fn default() -> TypedClass
fn default() -> TypedClass
Returns the “default value” for a type. Read more
Source§impl Hash for TypedClass
impl Hash for TypedClass
Source§impl Ord for TypedClass
impl Ord for TypedClass
Source§fn cmp(&self, other: &TypedClass) -> Ordering
fn cmp(&self, other: &TypedClass) -> 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 TypedClass
impl PartialEq for TypedClass
Source§fn eq(&self, other: &TypedClass) -> bool
fn eq(&self, other: &TypedClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TypedClass
impl PartialOrd for TypedClass
impl Eq for TypedClass
impl StructuralPartialEq for TypedClass
Auto Trait Implementations§
impl Freeze for TypedClass
impl RefUnwindSafe for TypedClass
impl Send for TypedClass
impl Sync for TypedClass
impl Unpin for TypedClass
impl UnsafeUnpin for TypedClass
impl UnwindSafe for TypedClass
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