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