pub struct StructBuilder { /* private fields */ }Implementations§
Source§impl StructBuilder
impl StructBuilder
pub fn new(name: impl Into<String>) -> Self
pub fn visibility(self, visibility: Visibility) -> Self
pub fn type_param(self, name: impl Into<String>) -> Self
pub fn trait_bound(self, bound: TraitBound) -> Self
pub fn field(self, field: StructField) -> Self
pub fn finish(self) -> StructDef
Trait Implementations§
Source§impl Clone for StructBuilder
impl Clone for StructBuilder
Source§fn clone(&self) -> StructBuilder
fn clone(&self) -> StructBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StructBuilder
impl RefUnwindSafe for StructBuilder
impl Send for StructBuilder
impl Sync for StructBuilder
impl Unpin for StructBuilder
impl UnsafeUnpin for StructBuilder
impl UnwindSafe for StructBuilder
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