pub struct TraitImplDetails {
pub self_ty: String,
pub trait_path: String,
pub generics: Vec<GenericParam>,
pub where_clause: Option<String>,
pub is_negative: bool,
pub is_unsafe: bool,
pub methods: Vec<MethodDetails>,
pub assoc_types: Vec<AssocTypeInfo>,
pub assoc_consts: Vec<AssocConstInfo>,
pub source: Option<String>,
pub span: Option<SpanInfo>,
}Expand description
Detailed information about a trait implementation.
Fieldsยง
ยงself_ty: StringThe implementing type
trait_path: StringThe trait being implemented
generics: Vec<GenericParam>Generic parameters on the impl
where_clause: Option<String>Where clause
is_negative: boolWhether this is a negative impl (!Trait)
is_unsafe: boolWhether this is an unsafe impl
methods: Vec<MethodDetails>Methods in this impl
assoc_types: Vec<AssocTypeInfo>Associated types
assoc_consts: Vec<AssocConstInfo>Associated constants
source: Option<String>The full source code of the impl block
span: Option<SpanInfo>Trait Implementationsยง
Sourceยงimpl Clone for TraitImplDetails
impl Clone for TraitImplDetails
Sourceยงfn clone(&self) -> TraitImplDetails
fn clone(&self) -> TraitImplDetails
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 TraitImplDetails
impl Debug for TraitImplDetails
Sourceยงimpl<'de> Deserialize<'de> for TraitImplDetails
impl<'de> Deserialize<'de> for TraitImplDetails
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<TraitImplDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TraitImplDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Serialize for TraitImplDetails
impl Serialize for TraitImplDetails
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementationsยง
impl Freeze for TraitImplDetails
impl RefUnwindSafe for TraitImplDetails
impl Send for TraitImplDetails
impl Sync for TraitImplDetails
impl Unpin for TraitImplDetails
impl UnwindSafe for TraitImplDetails
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