pub struct SyntaxTree {
pub inner: Vec<Decl>,
}
Expand description
The syntax tree for a WGSL program.
Fields§
§inner: Vec<Decl>
Implementations§
Source§impl SyntaxTree
impl SyntaxTree
pub fn find_exported_symbol<'a>(&'a self, needle: &Token) -> Option<&'a Decl>
pub fn import_path_decl(&self) -> Option<&Decl>
Trait Implementations§
Source§impl Debug for SyntaxTree
impl Debug for SyntaxTree
Source§impl DebugLisp for SyntaxTree
impl DebugLisp for SyntaxTree
Source§impl Parse for SyntaxTree
impl Parse for SyntaxTree
Auto Trait Implementations§
impl Freeze for SyntaxTree
impl RefUnwindSafe for SyntaxTree
impl Send for SyntaxTree
impl Sync for SyntaxTree
impl Unpin for SyntaxTree
impl UnwindSafe for SyntaxTree
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