Struct rustc_resolve::Segment [−][src]
Expand description
A minimal representation of a path segment. We use this in resolve because we synthesize ‘path
segments’ which don’t have the rest of an AST or HIR PathSegment.
Fields
ident: Identid: Option<NodeId>has_generic_args: boolExpand description
Signals whether this PathSegment has generic arguments. Used to avoid providing
nonsensical suggestions.
Implementations
impl Segment[src]
impl Segment[src]Trait Implementations
impl<'a> From<&'a PathSegment> for Segment[src]
impl<'a> From<&'a PathSegment> for Segment[src]fn from(seg: &'a PathSegment) -> Segment[src]
fn from(seg: &'a PathSegment) -> Segment[src]Performs the conversion.
impl Copy for Segment[src]
Auto Trait Implementations
impl RefUnwindSafe for Segment
impl !Send for Segment
impl !Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more