Struct sway_parse::ItemUse
source · [−]pub struct ItemUse {
pub visibility: Option<PubToken>,
pub use_token: UseToken,
pub root_import: Option<DoubleColonToken>,
pub tree: UseTree,
pub semicolon_token: SemicolonToken,
}
Fields
visibility: Option<PubToken>
use_token: UseToken
root_import: Option<DoubleColonToken>
tree: UseTree
semicolon_token: SemicolonToken
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemUse
impl Send for ItemUse
impl Sync for ItemUse
impl Unpin for ItemUse
impl UnwindSafe for ItemUse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more