pub struct PackageDirective<'a> {
pub package: PackageName<'a>,
pub targets: Option<PackagePath<'a>>,
}
Expand description
Represents a package directive in the AST.
Fields§
§package: PackageName<'a>
The name of the package named by the directive.
targets: Option<PackagePath<'a>>
The optional world being targeted by the package.
Trait Implementations§
Source§impl<'a> Clone for PackageDirective<'a>
impl<'a> Clone for PackageDirective<'a>
Source§fn clone(&self) -> PackageDirective<'a>
fn clone(&self) -> PackageDirective<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for PackageDirective<'a>
impl<'a> Debug for PackageDirective<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackageDirective<'a>
impl<'a> RefUnwindSafe for PackageDirective<'a>
impl<'a> Send for PackageDirective<'a>
impl<'a> Sync for PackageDirective<'a>
impl<'a> Unpin for PackageDirective<'a>
impl<'a> UnwindSafe for PackageDirective<'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