pub struct FieldBuilder { /* private fields */ }Expand description
Builder for Field
Implementations§
Source§impl FieldBuilder
impl FieldBuilder
Sourcepub const fn new() -> FieldBuilder
pub const fn new() -> FieldBuilder
Creates a new FieldBuilder
Sourcepub const fn name(self, name: &'static str) -> FieldBuilder
pub const fn name(self, name: &'static str) -> FieldBuilder
Sets the name for the Field
Sourcepub const fn shape(self, shape: &'static Shape) -> FieldBuilder
pub const fn shape(self, shape: &'static Shape) -> FieldBuilder
Sets the shape for the Field
Sourcepub const fn offset(self, offset: usize) -> FieldBuilder
pub const fn offset(self, offset: usize) -> FieldBuilder
Sets the offset for the Field
Sourcepub const fn flags(self, flags: FieldFlags) -> FieldBuilder
pub const fn flags(self, flags: FieldFlags) -> FieldBuilder
Sets the flags for the Field
Sourcepub const fn attributes(
self,
attributes: &'static [FieldAttribute],
) -> FieldBuilder
pub const fn attributes( self, attributes: &'static [FieldAttribute], ) -> FieldBuilder
Sets the attributes for the Field
Auto Trait Implementations§
impl Freeze for FieldBuilder
impl RefUnwindSafe for FieldBuilder
impl Send for FieldBuilder
impl Sync for FieldBuilder
impl Unpin for FieldBuilder
impl UnwindSafe for FieldBuilder
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