pub struct StructBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> StructBuilder<S>
impl<S: State> StructBuilder<S>
Sourcepub fn build(self) -> Structwhere
S: IsComplete,
pub fn build(self) -> Structwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn x1(self, value: u32) -> StructBuilder<SetX1<S>>where
S::X1: IsUnset,
pub fn x1(self, value: u32) -> StructBuilder<SetX1<S>>where
S::X1: IsUnset,
Required.
Doc comment on x1
Sourcepub fn x2(self, value: u32) -> StructBuilder<SetX2<S>>where
S::X2: IsUnset,
pub fn x2(self, value: u32) -> StructBuilder<SetX2<S>>where
S::X2: IsUnset,
Sourcepub fn x3(self, value: u32) -> StructBuilder<SetX3<S>>where
S::X3: IsUnset,
pub fn x3(self, value: u32) -> StructBuilder<SetX3<S>>where
S::X3: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for StructBuilder<S>
impl<S> RefUnwindSafe for StructBuilder<S>
impl<S> Send for StructBuilder<S>
impl<S> Sync for StructBuilder<S>
impl<S> Unpin for StructBuilder<S>
impl<S> UnwindSafe for StructBuilder<S>
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