pub struct TraitSig {
pub name: Arc<str>,
pub methods: Vec<MethodSig>,
}Expand description
A published trait: the signatures it requires, over an abstract Self.
The checker keeps a trait’s methods as syntax while it is desugaring impls and bounds, because
splicing is what that pass does. This is the other half: the same declaration as types, which
is what a .becki compares, what --wire-compat classifies, and what an importing module reads.
A trait that crossed a boundary as syntax would carry spans into a file that does not own them.
Fields§
§name: Arc<str>§methods: Vec<MethodSig>Trait Implementations§
impl Eq for TraitSig
impl StructuralPartialEq for TraitSig
Auto Trait Implementations§
impl Freeze for TraitSig
impl RefUnwindSafe for TraitSig
impl Send for TraitSig
impl Sync for TraitSig
impl Unpin for TraitSig
impl UnwindSafe for TraitSig
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