pub struct TensorDimBuilder<State>(/* private fields */);Expand description
Builder for serializing an instance of the TensorDim type.
Can be created using the TensorDim::builder method.
Implementations§
Source§impl TensorDimBuilder<()>
impl TensorDimBuilder<()>
Sourcepub fn size<T0>(self, value: T0) -> TensorDimBuilder<(T0,)>
pub fn size<T0>(self, value: T0) -> TensorDimBuilder<(T0,)>
Setter for the size field.
Sourcepub fn size_as_default(self) -> TensorDimBuilder<(DefaultValue,)>
pub fn size_as_default(self) -> TensorDimBuilder<(DefaultValue,)>
Sets the size field to the default value.
Source§impl<T0> TensorDimBuilder<(T0,)>
impl<T0> TensorDimBuilder<(T0,)>
Sourcepub fn name<T1>(self, value: T1) -> TensorDimBuilder<(T0, T1)>
pub fn name<T1>(self, value: T1) -> TensorDimBuilder<(T0, T1)>
Setter for the name field.
Sourcepub fn name_as_null(self) -> TensorDimBuilder<(T0, ())>
pub fn name_as_null(self) -> TensorDimBuilder<(T0, ())>
Sets the name field to null.
Trait Implementations§
Source§impl<State: Debug> Debug for TensorDimBuilder<State>
impl<State: Debug> Debug for TensorDimBuilder<State>
impl<T0: WriteAsDefault<i64, i64>, T1: WriteAsOptional<Offset<str>>> WriteAs<Offset<TensorDim>> for TensorDimBuilder<(T0, T1)>
impl<T0: WriteAsDefault<i64, i64>, T1: WriteAsOptional<Offset<str>>> WriteAsOffset<TensorDim> for TensorDimBuilder<(T0, T1)>
impl<T0: WriteAsDefault<i64, i64>, T1: WriteAsOptional<Offset<str>>> WriteAsOptional<Offset<TensorDim>> for TensorDimBuilder<(T0, T1)>
Auto Trait Implementations§
impl<State> Freeze for TensorDimBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for TensorDimBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for TensorDimBuilder<State>where
State: Send,
impl<State> Sync for TensorDimBuilder<State>where
State: Sync,
impl<State> Unpin for TensorDimBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for TensorDimBuilder<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