#[repr(C)]pub struct ValueVTableSized {Show 16 fields
pub type_name: TypeNameFn,
pub marker_traits: fn() -> MarkerTraits,
pub drop_in_place: fn() -> Option<DropInPlaceFn>,
pub invariants: fn() -> Option<InvariantsFn>,
pub display: fn() -> Option<DisplayFn>,
pub debug: fn() -> Option<DebugFn>,
pub default_in_place: fn() -> Option<DefaultInPlaceFn>,
pub clone_into: fn() -> Option<CloneIntoFn>,
pub partial_eq: fn() -> Option<PartialEqFn>,
pub partial_ord: fn() -> Option<PartialOrdFn>,
pub ord: fn() -> Option<CmpFn>,
pub hash: fn() -> Option<HashFn>,
pub parse: fn() -> Option<ParseFn>,
pub try_from: fn() -> Option<TryFromFn>,
pub try_into_inner: fn() -> Option<TryIntoInnerFn>,
pub try_borrow_inner: fn() -> Option<TryBorrowInnerFn>,
}
Expand description
VTable for common operations that can be performed on any Sized
shape
Fields§
§type_name: TypeNameFn
cf. TypeNameFn
marker_traits: fn() -> MarkerTraits
Marker traits implemented by the type
drop_in_place: fn() -> Option<DropInPlaceFn>
cf. DropInPlaceFn
— if None, drops without side-effects
invariants: fn() -> Option<InvariantsFn>
cf. InvariantsFn
display: fn() -> Option<DisplayFn>
cf. DisplayFn
debug: fn() -> Option<DebugFn>
cf. DebugFn
default_in_place: fn() -> Option<DefaultInPlaceFn>
cf. DefaultInPlaceFn
clone_into: fn() -> Option<CloneIntoFn>
cf. CloneIntoFn
partial_eq: fn() -> Option<PartialEqFn>
cf. PartialEqFn
for equality comparison
partial_ord: fn() -> Option<PartialOrdFn>
cf. PartialOrdFn
for partial ordering comparison
ord: fn() -> Option<CmpFn>
cf. CmpFn
for total ordering
hash: fn() -> Option<HashFn>
cf. HashFn
parse: fn() -> Option<ParseFn>
cf. ParseFn
try_from: fn() -> Option<TryFromFn>
cf. TryFromFn
This also acts as a “TryFromInner” — you can use it to go:
String
=>Utf8PathBuf
String
=>Uuid
T
=>Option<T>
T
=>Arc<T>
T
=>NonZero<T>
- etc.
try_into_inner: fn() -> Option<TryIntoInnerFn>
cf. TryIntoInnerFn
This is used by transparent types to convert the wrapper type into its inner value. Primarily used during serialization.
try_borrow_inner: fn() -> Option<TryBorrowInnerFn>
cf. TryBorrowInnerFn
This is used by transparent types to efficiently access the inner value without copying.
Trait Implementations§
Source§impl Clone for ValueVTableSized
impl Clone for ValueVTableSized
Source§fn clone(&self) -> ValueVTableSized
fn clone(&self) -> ValueVTableSized
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 moreSource§impl Debug for ValueVTableSized
impl Debug for ValueVTableSized
impl Copy for ValueVTableSized
Auto Trait Implementations§
impl Freeze for ValueVTableSized
impl RefUnwindSafe for ValueVTableSized
impl Send for ValueVTableSized
impl Sync for ValueVTableSized
impl Unpin for ValueVTableSized
impl UnwindSafe for ValueVTableSized
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