pub struct TraitRef {
pub path: Path,
pub node_id: NodeId,
}
Fields§
§path: Path
§node_id: NodeId
Implementations§
Source§impl TraitRef
impl TraitRef
fn is_fn_trait_name(name: Symbol) -> bool
pub fn as_fn_trait_ref(&self) -> Option<(&GenericArg, &GenericArg)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraitRef
impl RefUnwindSafe for TraitRef
impl Send for TraitRef
impl Sync for TraitRef
impl Unpin for TraitRef
impl UnwindSafe for TraitRef
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