pub struct EnumBuilder { /* private fields */ }Implementations§
Source§impl EnumBuilder
impl EnumBuilder
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 variant(self, variant: EnumVariant) -> Self
pub fn finish(self) -> EnumDef
Trait Implementations§
Source§impl Clone for EnumBuilder
impl Clone for EnumBuilder
Source§fn clone(&self) -> EnumBuilder
fn clone(&self) -> EnumBuilder
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 EnumBuilder
impl RefUnwindSafe for EnumBuilder
impl Send for EnumBuilder
impl Sync for EnumBuilder
impl Unpin for EnumBuilder
impl UnsafeUnpin for EnumBuilder
impl UnwindSafe for EnumBuilder
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