pub struct ImportPackageLabel {
pub value: String,
pub span: Span,
}Expand description
Source package label on a package-qualified import (import "pkg" Module).
Holds the decoded string literal value and its source span. This is source
syntax only; it is not resolved to an LF PackageId.
Fields§
§value: StringDecoded package label text from the string literal.
span: SpanSpan of the string literal token, including quotes.
Trait Implementations§
Source§impl Clone for ImportPackageLabel
impl Clone for ImportPackageLabel
Source§fn clone(&self) -> ImportPackageLabel
fn clone(&self) -> ImportPackageLabel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportPackageLabel
impl Debug for ImportPackageLabel
impl Eq for ImportPackageLabel
Source§impl PartialEq for ImportPackageLabel
impl PartialEq for ImportPackageLabel
Source§fn eq(&self, other: &ImportPackageLabel) -> bool
fn eq(&self, other: &ImportPackageLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportPackageLabel
Auto Trait Implementations§
impl Freeze for ImportPackageLabel
impl RefUnwindSafe for ImportPackageLabel
impl Send for ImportPackageLabel
impl Sync for ImportPackageLabel
impl Unpin for ImportPackageLabel
impl UnsafeUnpin for ImportPackageLabel
impl UnwindSafe for ImportPackageLabel
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