#[non_exhaustive]#[repr(C)]pub struct ValueVTableUnsized {
pub type_name: TypeNameFn,
pub marker_traits: fn() -> MarkerTraits,
pub drop_in_place: fn() -> Option<DropInPlaceFnWide>,
pub invariants: fn() -> Option<InvariantsFnWide>,
pub display: fn() -> Option<DisplayFnWide>,
pub debug: fn() -> Option<DebugFnWide>,
pub partial_eq: fn() -> Option<PartialEqFnWide>,
pub partial_ord: fn() -> Option<PartialOrdFnWide>,
pub ord: fn() -> Option<CmpFnWide>,
pub hash: fn() -> Option<HashFnWide>,
pub try_borrow_inner: fn() -> Option<TryBorrowInnerFnWide>,
}Expand description
VTable for common operations that can be performed on any !Sized 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
marker_traits: fn() -> MarkerTraitsMarker traits implemented by the type
drop_in_place: fn() -> Option<DropInPlaceFnWide>cf. DropInPlaceFn — if None, drops without side-effects
invariants: fn() -> Option<InvariantsFnWide>cf. InvariantsFn
display: fn() -> Option<DisplayFnWide>cf. DisplayFn
debug: fn() -> Option<DebugFnWide>cf. DebugFn
partial_eq: fn() -> Option<PartialEqFnWide>cf. PartialEqFn for equality comparison
partial_ord: fn() -> Option<PartialOrdFnWide>cf. PartialOrdFn for partial ordering comparison
ord: fn() -> Option<CmpFnWide>cf. CmpFn for total ordering
hash: fn() -> Option<HashFnWide>cf. HashFn
try_borrow_inner: fn() -> Option<TryBorrowInnerFnWide>cf. TryBorrowInnerFn
This is used by transparent types to efficiently access the inner value without copying.
Trait Implementations§
Source§impl Clone for ValueVTableUnsized
impl Clone for ValueVTableUnsized
Source§fn clone(&self) -> ValueVTableUnsized
fn clone(&self) -> ValueVTableUnsized
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 ValueVTableUnsized
impl Debug for ValueVTableUnsized
Source§impl Hash for ValueVTableUnsized
impl Hash for ValueVTableUnsized
Source§impl PartialEq for ValueVTableUnsized
impl PartialEq for ValueVTableUnsized
impl Copy for ValueVTableUnsized
impl Eq for ValueVTableUnsized
impl StructuralPartialEq for ValueVTableUnsized
Auto Trait Implementations§
impl Freeze for ValueVTableUnsized
impl RefUnwindSafe for ValueVTableUnsized
impl Send for ValueVTableUnsized
impl Sync for ValueVTableUnsized
impl Unpin for ValueVTableUnsized
impl UnwindSafe for ValueVTableUnsized
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