pub struct TimeBuilder<State>(/* private fields */);Expand description
Builder for serializing an instance of the Time type.
Can be created using the Time::builder method.
Implementations§
Source§impl TimeBuilder<()>
impl TimeBuilder<()>
Sourcepub fn unit<T0>(self, value: T0) -> TimeBuilder<(T0,)>
pub fn unit<T0>(self, value: T0) -> TimeBuilder<(T0,)>
Setter for the unit field.
Sourcepub fn unit_as_default(self) -> TimeBuilder<(DefaultValue,)>
pub fn unit_as_default(self) -> TimeBuilder<(DefaultValue,)>
Sets the unit field to the default value.
Source§impl<T0> TimeBuilder<(T0,)>
impl<T0> TimeBuilder<(T0,)>
Sourcepub fn bit_width<T1>(self, value: T1) -> TimeBuilder<(T0, T1)>
pub fn bit_width<T1>(self, value: T1) -> TimeBuilder<(T0, T1)>
Setter for the bitWidth field.
Sourcepub fn bit_width_as_default(self) -> TimeBuilder<(T0, DefaultValue)>
pub fn bit_width_as_default(self) -> TimeBuilder<(T0, DefaultValue)>
Sets the bitWidth field to the default value.
Trait Implementations§
Source§impl<State: Debug> Debug for TimeBuilder<State>
impl<State: Debug> Debug for TimeBuilder<State>
impl<T0: WriteAsDefault<TimeUnit, TimeUnit>, T1: WriteAsDefault<i32, i32>> WriteAs<Offset<Time>> for TimeBuilder<(T0, T1)>
impl<T0: WriteAsDefault<TimeUnit, TimeUnit>, T1: WriteAsDefault<i32, i32>> WriteAsOffset<Time> for TimeBuilder<(T0, T1)>
impl<T0: WriteAsDefault<TimeUnit, TimeUnit>, T1: WriteAsDefault<i32, i32>> WriteAsOptional<Offset<Time>> for TimeBuilder<(T0, T1)>
Auto Trait Implementations§
impl<State> Freeze for TimeBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for TimeBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for TimeBuilder<State>where
State: Send,
impl<State> Sync for TimeBuilder<State>where
State: Sync,
impl<State> Unpin for TimeBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for TimeBuilder<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