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