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