pub struct FieldBuilder { /* private fields */ }
Expand description
Builder for Field
Implementations§
Source§impl FieldBuilder
impl FieldBuilder
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 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