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