pub struct MapBuilder<State>(/* private fields */);Expand description
Builder for serializing an instance of the Map type.
Can be created using the Map::builder method.
Implementations§
Source§impl MapBuilder<()>
impl MapBuilder<()>
Sourcepub fn keys_sorted<T0>(self, value: T0) -> MapBuilder<(T0,)>
pub fn keys_sorted<T0>(self, value: T0) -> MapBuilder<(T0,)>
Setter for the keysSorted field.
Sourcepub fn keys_sorted_as_default(self) -> MapBuilder<(DefaultValue,)>
pub fn keys_sorted_as_default(self) -> MapBuilder<(DefaultValue,)>
Sets the keysSorted field to the default value.
Trait Implementations§
Source§impl<State: Debug> Debug for MapBuilder<State>
impl<State: Debug> Debug for MapBuilder<State>
impl<T0: WriteAsDefault<bool, bool>> WriteAs<Offset<Map>> for MapBuilder<(T0,)>
impl<T0: WriteAsDefault<bool, bool>> WriteAsOffset<Map> for MapBuilder<(T0,)>
impl<T0: WriteAsDefault<bool, bool>> WriteAsOptional<Offset<Map>> for MapBuilder<(T0,)>
Auto Trait Implementations§
impl<State> Freeze for MapBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for MapBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for MapBuilder<State>where
State: Send,
impl<State> Sync for MapBuilder<State>where
State: Sync,
impl<State> Unpin for MapBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for MapBuilder<State>where
State: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more