pub struct Slot<'s> { /* private fields */ }
Expand description
Allows writing into a struct field or inserting into a hash map.
Implementations§
Source§impl<'s> Slot<'s>
impl<'s> Slot<'s>
pub fn for_struct_field( field_addr: Option<NonNull<u8>>, field_shape: ShapeDesc, init_field_slot: InitFieldSlot<'s>, ) -> Self
pub fn for_hash_map( map: NonNull<u8>, field_shape: ShapeDesc, key: String, init_field_slot: InitFieldSlot<'s>, ) -> Self
pub fn fill<T: Shapely>(self, value: T)
pub fn fill_from_partial(self, partial: Partial<'_>)
Auto Trait Implementations§
impl<'s> Freeze for Slot<'s>
impl<'s> RefUnwindSafe for Slot<'s>
impl<'s> !Send for Slot<'s>
impl<'s> !Sync for Slot<'s>
impl<'s> Unpin for Slot<'s>
impl<'s> !UnwindSafe for Slot<'s>
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