pub struct Implementation {
pub attributes: Attributes,
pub self_: Type,
pub items: Vec<ImplementationItem>,
}Expand description
Function Struct
Fields§
§attributes: AttributesAttributes field.
self_: TypeSelf field.
items: Vec<ImplementationItem>Items field.
Implementations§
Source§impl Implementation
impl Implementation
Sourcepub fn dependencies(&self) -> Vec<Type>
pub fn dependencies(&self) -> Vec<Type>
Maps the dependencies in the method signatures.
Sourcepub fn replace_self_with_explicit_names(&mut self)
pub fn replace_self_with_explicit_names(&mut self)
Trait Implementations§
Source§impl Clone for Implementation
impl Clone for Implementation
Source§fn clone(&self) -> Implementation
fn clone(&self) -> Implementation
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 moreSource§impl Debug for Implementation
impl Debug for Implementation
Source§impl PartialEq for Implementation
impl PartialEq for Implementation
Source§impl ReplaceIdentifier for Implementation
impl ReplaceIdentifier for Implementation
Source§fn replace_identifier(&mut self, old: &Identifier, new: &Identifier)
fn replace_identifier(&mut self, old: &Identifier, new: &Identifier)
Replace all occurrences of the
old identifier by the new identifier.Source§impl TryFrom<ItemImpl> for Implementation
impl TryFrom<ItemImpl> for Implementation
Source§impl TryFrom<TokenStream> for Implementation
impl TryFrom<TokenStream> for Implementation
Source§impl TryFrom<TokenStream> for Implementation
impl TryFrom<TokenStream> for Implementation
impl StructuralPartialEq for Implementation
Auto Trait Implementations§
impl Freeze for Implementation
impl RefUnwindSafe for Implementation
impl Send for Implementation
impl Sync for Implementation
impl Unpin for Implementation
impl UnwindSafe for Implementation
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