pub struct UseDirective {
pub package: String,
pub alias: String,
}Expand description
Use directive: !use @scope/name [as alias]
Fields§
§package: StringFull package name, e.g. “@aperture/synx-defaults”
alias: StringNamespace alias (defaults to last segment: “synx-defaults”)
Trait Implementations§
Source§impl Clone for UseDirective
impl Clone for UseDirective
Source§fn clone(&self) -> UseDirective
fn clone(&self) -> UseDirective
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 moreAuto Trait Implementations§
impl Freeze for UseDirective
impl RefUnwindSafe for UseDirective
impl Send for UseDirective
impl Sync for UseDirective
impl Unpin for UseDirective
impl UnsafeUnpin for UseDirective
impl UnwindSafe for UseDirective
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