Struct wgsl_parser::decl::legacy::ModuleDecl
source · pub struct ModuleDecl {
pub import_kw: Token,
pub name: Token,
pub from_kw: Token,
pub path: Token,
pub semicolon: Token,
}Fields§
§import_kw: Token§name: Token§from_kw: Token§path: Token§semicolon: TokenImplementations§
Trait Implementations§
source§impl Clone for ModuleDecl
impl Clone for ModuleDecl
source§fn clone(&self) -> ModuleDecl
fn clone(&self) -> ModuleDecl
Returns a copy 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 Debug for ModuleDecl
impl Debug for ModuleDecl
source§impl DebugLisp for ModuleDecl
impl DebugLisp for ModuleDecl
source§impl Parse for ModuleDecl
impl Parse for ModuleDecl
Auto Trait Implementations§
impl Freeze for ModuleDecl
impl RefUnwindSafe for ModuleDecl
impl Send for ModuleDecl
impl Sync for ModuleDecl
impl Unpin for ModuleDecl
impl UnwindSafe for ModuleDecl
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more