pub struct MapBuilder { /* private fields */ }Expand description
Builder for map<K, V, N>.
Implementations§
Source§impl MapBuilder
impl MapBuilder
Sourcepub fn add_map_member(
self,
ext: Extensibility,
) -> Result<MinimalMapType, BuilderError>
pub fn add_map_member( self, ext: Extensibility, ) -> Result<MinimalMapType, BuilderError>
Validating builder: allows only FINAL/APPENDABLE extensibility.
MUTABLE wirft BuilderError::MutableMapExtensibilityNotAllowed
(XTypes 1.3 §7.4.3.5.3 Rules 11-16).
§Errors
MutableMapExtensibilityNotAllowed if ext == Mutable.
Sourcepub fn build_minimal(&self) -> MinimalMapType
pub fn build_minimal(&self) -> MinimalMapType
Builds a MinimalMapType.
Auto Trait Implementations§
impl Freeze for MapBuilder
impl RefUnwindSafe for MapBuilder
impl Send for MapBuilder
impl Sync for MapBuilder
impl Unpin for MapBuilder
impl UnsafeUnpin for MapBuilder
impl UnwindSafe for MapBuilder
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