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