pub struct FrcStructDesc {
pub schema_supplier: fn() -> String,
pub type_str: &'static str,
pub size: usize,
}Expand description
A description of a structure, used for serialization and deserialization
Fields§
§schema_supplier: fn() -> StringA function that returns the schema of the structure, this is needed because the schema cannot be made in a const context
type_str: &'static strThe type of the structure, typically the name of the rust type
size: usizeThe size of the structure in bytes
Trait Implementations§
Source§impl Clone for FrcStructDesc
impl Clone for FrcStructDesc
Source§fn clone(&self) -> FrcStructDesc
fn clone(&self) -> FrcStructDesc
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 moreimpl Collect for FrcStructDesc
impl Copy for FrcStructDesc
Source§impl Debug for FrcStructDesc
impl Debug for FrcStructDesc
impl Eq for FrcStructDesc
Source§impl Hash for FrcStructDesc
impl Hash for FrcStructDesc
Source§impl Ord for FrcStructDesc
impl Ord for FrcStructDesc
Source§fn cmp(&self, other: &FrcStructDesc) -> Ordering
fn cmp(&self, other: &FrcStructDesc) -> 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 FrcStructDesc
impl PartialEq for FrcStructDesc
Source§fn eq(&self, other: &FrcStructDesc) -> bool
fn eq(&self, other: &FrcStructDesc) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FrcStructDesc
impl PartialOrd for FrcStructDesc
impl StructuralPartialEq for FrcStructDesc
Auto Trait Implementations§
impl Freeze for FrcStructDesc
impl RefUnwindSafe for FrcStructDesc
impl Send for FrcStructDesc
impl Sync for FrcStructDesc
impl Unpin for FrcStructDesc
impl UnsafeUnpin for FrcStructDesc
impl UnwindSafe for FrcStructDesc
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,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.