#[non_exhaustive]pub struct ValueVTable {Show 13 fields
pub type_name: TypeNameFn,
pub display: Option<DisplayFn>,
pub debug: Option<DebugFn>,
pub default_in_place: Option<DefaultInPlaceFn>,
pub clone_into: Option<CloneIntoFn>,
pub marker_traits: MarkerTraits,
pub eq: Option<PartialEqFn>,
pub partial_ord: Option<PartialOrdFn>,
pub ord: Option<CmpFn>,
pub hash: Option<HashFn>,
pub drop_in_place: Option<DropInPlaceFn>,
pub parse: Option<ParseFn>,
pub try_from: Option<TryFromFn>,
}Expand description
VTable for common operations that can be performed on any shape
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_name: TypeNameFncf. TypeNameFn
display: Option<DisplayFn>cf. DisplayFn
debug: Option<DebugFn>cf. DebugFn
default_in_place: Option<DefaultInPlaceFn>cf. DefaultInPlaceFn
clone_into: Option<CloneIntoFn>cf. [CloneInPlaceFn]
marker_traits: MarkerTraitsMarker traits implemented by the type
eq: Option<PartialEqFn>cf. PartialEqFn for equality comparison
partial_ord: Option<PartialOrdFn>cf. PartialOrdFn for partial ordering comparison
ord: Option<CmpFn>cf. CmpFn for total ordering
hash: Option<HashFn>cf. HashFn
drop_in_place: Option<DropInPlaceFn>cf. DropInPlaceFn — if None, drops without side-effects
parse: Option<ParseFn>cf. ParseFn
try_from: Option<TryFromFn>cf. TryFromFn
Implementations§
Source§impl ValueVTable
impl ValueVTable
Sourcepub const fn builder() -> ValueVTableBuilder
pub const fn builder() -> ValueVTableBuilder
Creates a new ValueVTableBuilder
Trait Implementations§
Source§impl Clone for ValueVTable
impl Clone for ValueVTable
Source§fn clone(&self) -> ValueVTable
fn clone(&self) -> ValueVTable
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 moreSource§impl Debug for ValueVTable
impl Debug for ValueVTable
Source§impl Hash for ValueVTable
impl Hash for ValueVTable
Source§impl PartialEq for ValueVTable
impl PartialEq for ValueVTable
impl Copy for ValueVTable
impl Eq for ValueVTable
impl StructuralPartialEq for ValueVTable
Auto Trait Implementations§
impl Freeze for ValueVTable
impl RefUnwindSafe for ValueVTable
impl Send for ValueVTable
impl Sync for ValueVTable
impl Unpin for ValueVTable
impl UnwindSafe for ValueVTable
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