Struct wgsl_parser::decl::import::ImportDecl
source · pub struct ImportDecl {
pub keyword: Token,
pub path: ImportPath,
}Expand description
Represents an #import statement like the ones supported by
naga_oil:
#import my::shader::{
module_a,
module_b::{TypeA, TypeB},
module_c::function,
module_d::function as d_function,
}
Fields§
§keyword: Token§path: ImportPathImplementations§
source§impl ImportDecl
impl ImportDecl
pub fn build_imported_symbols(&self) -> Vec<ImportedSymbol>
Trait Implementations§
source§impl Clone for ImportDecl
impl Clone for ImportDecl
source§fn clone(&self) -> ImportDecl
fn clone(&self) -> ImportDecl
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 ImportDecl
impl Debug for ImportDecl
source§impl DebugLisp for ImportDecl
impl DebugLisp for ImportDecl
source§impl Parse for ImportDecl
impl Parse for ImportDecl
Auto Trait Implementations§
impl Freeze for ImportDecl
impl RefUnwindSafe for ImportDecl
impl Send for ImportDecl
impl Sync for ImportDecl
impl Unpin for ImportDecl
impl UnwindSafe for ImportDecl
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