pub struct Path { /* private fields */ }Implementations§
Source§impl Path
impl Path
pub fn new(segments: Box<[PathSegment]>) -> Self
pub fn from_ident(ident: Ident) -> Self
pub fn segments(&self) -> &[PathSegment]
pub fn last_segment(&self) -> &PathSegment
pub fn def(&self) -> &NodeRef<HirId>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Path
impl !RefUnwindSafe for Path
impl Send for Path
impl !Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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