pub struct ImplBuilder { /* private fields */ }Implementations§
Source§impl ImplBuilder
impl ImplBuilder
pub fn new(target_type: Type) -> Self
pub fn for_trait(self, trait_name: impl Into<String>) -> Self
pub fn type_param(self, name: impl Into<String>) -> Self
pub fn where_bound(self, bound: TraitBound) -> Self
pub fn method(self, method: FunctionDef) -> Self
pub fn finish(self) -> ImplBlock
Trait Implementations§
Source§impl Clone for ImplBuilder
impl Clone for ImplBuilder
Source§fn clone(&self) -> ImplBuilder
fn clone(&self) -> ImplBuilder
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 ImplBuilder
impl RefUnwindSafe for ImplBuilder
impl Send for ImplBuilder
impl Sync for ImplBuilder
impl Unpin for ImplBuilder
impl UnsafeUnpin for ImplBuilder
impl UnwindSafe for ImplBuilder
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