pub struct PackageName<'a> {
pub string: &'a str,
pub name: &'a str,
pub version: Option<Version>,
pub span: SourceSpan,
}
Expand description
Represents a package name in the AST.
Fields§
§string: &'a str
The entire package name as a string.
name: &'a str
The name of the package.
version: Option<Version>
The optional version of the package.
span: SourceSpan
The span of the package name,
Trait Implementations§
Source§impl<'a> Clone for PackageName<'a>
impl<'a> Clone for PackageName<'a>
Source§fn clone(&self) -> PackageName<'a>
fn clone(&self) -> PackageName<'a>
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<'a> Debug for PackageName<'a>
impl<'a> Debug for PackageName<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackageName<'a>
impl<'a> RefUnwindSafe for PackageName<'a>
impl<'a> Send for PackageName<'a>
impl<'a> Sync for PackageName<'a>
impl<'a> Unpin for PackageName<'a>
impl<'a> UnwindSafe for PackageName<'a>
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