pub struct Uint16StringBuilder<State>(/* private fields */);
Expand description
Builder for serializing an instance of the Uint16String type.
Can be created using the Uint16String::builder method.
Implementations§
Source§impl Uint16StringBuilder<()>
impl Uint16StringBuilder<()>
Sourcepub fn key<T0>(self, value: T0) -> Uint16StringBuilder<(T0,)>
pub fn key<T0>(self, value: T0) -> Uint16StringBuilder<(T0,)>
Setter for the key
field.
Sourcepub fn key_as_default(self) -> Uint16StringBuilder<(DefaultValue,)>
pub fn key_as_default(self) -> Uint16StringBuilder<(DefaultValue,)>
Sets the key
field to the default value.
Source§impl<T0> Uint16StringBuilder<(T0,)>
impl<T0> Uint16StringBuilder<(T0,)>
Sourcepub fn value<T1>(self, value: T1) -> Uint16StringBuilder<(T0, T1)>
pub fn value<T1>(self, value: T1) -> Uint16StringBuilder<(T0, T1)>
Setter for the value
field.
Source§impl<T0, T1> Uint16StringBuilder<(T0, T1)>
impl<T0, T1> Uint16StringBuilder<(T0, T1)>
Sourcepub fn finish(self, builder: &mut Builder) -> Offset<Uint16String>where
Self: WriteAsOffset<Uint16String>,
pub fn finish(self, builder: &mut Builder) -> Offset<Uint16String>where
Self: WriteAsOffset<Uint16String>,
Finish writing the builder to get an Offset to a serialized Uint16String.
Trait Implementations§
Source§impl<State: Debug> Debug for Uint16StringBuilder<State>
impl<State: Debug> Debug for Uint16StringBuilder<State>
impl<T0: WriteAsDefault<u16, u16>, T1: WriteAs<Offset<str>>> WriteAs<Offset<Uint16String>> for Uint16StringBuilder<(T0, T1)>
impl<T0: WriteAsDefault<u16, u16>, T1: WriteAs<Offset<str>>> WriteAsOffset<Uint16String> for Uint16StringBuilder<(T0, T1)>
impl<T0: WriteAsDefault<u16, u16>, T1: WriteAs<Offset<str>>> WriteAsOptional<Offset<Uint16String>> for Uint16StringBuilder<(T0, T1)>
Auto Trait Implementations§
impl<State> Freeze for Uint16StringBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for Uint16StringBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for Uint16StringBuilder<State>where
State: Send,
impl<State> Sync for Uint16StringBuilder<State>where
State: Sync,
impl<State> Unpin for Uint16StringBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for Uint16StringBuilder<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