pub struct PathSegment {
pub name: String,
pub arguments: Vec<Type>,
}
Expand description
A segment of a type path.
Fields§
§name: String
The name of the segment.
arguments: Vec<Type>
The arguments provided to the segment.
Trait Implementations§
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§fn clone(&self) -> PathSegment
fn clone(&self) -> PathSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PathSegment
impl Debug for PathSegment
Source§impl Display for PathSegment
impl Display for PathSegment
Source§impl From<PathSegment> for PathSegment
impl From<PathSegment> for PathSegment
Source§fn from(value: PathSegment) -> Self
fn from(value: PathSegment) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PathSegment
impl PartialEq for PathSegment
impl StructuralPartialEq for PathSegment
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnwindSafe for PathSegment
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