pub struct MapDefBuilder { /* private fields */ }Expand description
Builder for MapDef
Implementations§
Source§impl MapDefBuilder
impl MapDefBuilder
Sourcepub const fn new() -> MapDefBuilder
pub const fn new() -> MapDefBuilder
Creates a new MapDefBuilder
Sourcepub const fn vtable(self, vtable: &'static MapVTable) -> MapDefBuilder
pub const fn vtable(self, vtable: &'static MapVTable) -> MapDefBuilder
Sets the vtable for the MapDef
Sourcepub const fn k(self, k: &'static Shape) -> MapDefBuilder
pub const fn k(self, k: &'static Shape) -> MapDefBuilder
Sets the key shape for the MapDef
Sourcepub const fn v(self, v: &'static Shape) -> MapDefBuilder
pub const fn v(self, v: &'static Shape) -> MapDefBuilder
Sets the value shape for the MapDef
Auto Trait Implementations§
impl Freeze for MapDefBuilder
impl RefUnwindSafe for MapDefBuilder
impl Send for MapDefBuilder
impl Sync for MapDefBuilder
impl Unpin for MapDefBuilder
impl UnwindSafe for MapDefBuilder
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