pub struct Impl {
pub ty: Type,
pub trait_: Option<Type>,
pub items: Vec<ImplItem>,
pub span: Range<usize>,
}Expand description
Represents an impl block in Rust source code.
Fields§
§ty: TypeThe type being implemented for
trait_: Option<Type>Optional trait being implemented
items: Vec<ImplItem>List of implementation items
span: Range<usize>Source code span where this impl block appears
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Impl
impl<'de> Deserialize<'de> for Impl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Impl
impl StructuralPartialEq for Impl
Auto Trait Implementations§
impl Freeze for Impl
impl RefUnwindSafe for Impl
impl Send for Impl
impl Sync for Impl
impl Unpin for Impl
impl UnwindSafe for Impl
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