Struct wgsl_parse::print::Print
source · pub struct Print<'s, T> { /* private fields */ }Expand description
A type that implements display for the syntax tree. It should output a valid wgsl file equivalent to the parsed file. It should only be used for debugging!
Trait Implementations§
source§impl Display for Print<'_, &AssignmentStatement>
impl Display for Print<'_, &AssignmentStatement>
source§impl Display for Print<'_, &BinaryExpression>
impl Display for Print<'_, &BinaryExpression>
source§impl Display for Print<'_, &CaseSelector>
impl Display for Print<'_, &CaseSelector>
source§impl Display for Print<'_, &CompoundStatement>
impl Display for Print<'_, &CompoundStatement>
source§impl Display for Print<'_, &ConstAssert>
impl Display for Print<'_, &ConstAssert>
source§impl Display for Print<'_, &ContinuingStatement>
impl Display for Print<'_, &ContinuingStatement>
source§impl Display for Print<'_, &Declaration>
impl Display for Print<'_, &Declaration>
source§impl Display for Print<'_, &DiagnosticDirective>
impl Display for Print<'_, &DiagnosticDirective>
source§impl Display for Print<'_, &EnableDirective>
impl Display for Print<'_, &EnableDirective>
source§impl Display for Print<'_, &Expression>
impl Display for Print<'_, &Expression>
source§impl Display for Print<'_, &ForStatement>
impl Display for Print<'_, &ForStatement>
source§impl Display for Print<'_, &FormalParameter>
impl Display for Print<'_, &FormalParameter>
source§impl Display for Print<'_, &FunctionCallExpression>
impl Display for Print<'_, &FunctionCallExpression>
source§impl Display for Print<'_, &GlobalDeclaration>
impl Display for Print<'_, &GlobalDeclaration>
source§impl Display for Print<'_, &GlobalDirective>
impl Display for Print<'_, &GlobalDirective>
source§impl Display for Print<'_, &IfStatement>
impl Display for Print<'_, &IfStatement>
source§impl Display for Print<'_, &IndexingExpression>
impl Display for Print<'_, &IndexingExpression>
source§impl Display for Print<'_, &LoopStatement>
impl Display for Print<'_, &LoopStatement>
source§impl Display for Print<'_, &NamedComponentExpression>
impl Display for Print<'_, &NamedComponentExpression>
source§impl Display for Print<'_, &IdentifierExpression>
impl Display for Print<'_, &IdentifierExpression>
source§impl Display for Print<'_, &RequiresDirective>
impl Display for Print<'_, &RequiresDirective>
source§impl Display for Print<'_, &StructMember>
impl Display for Print<'_, &StructMember>
source§impl Display for Print<'_, &SwitchClause>
impl Display for Print<'_, &SwitchClause>
source§impl Display for Print<'_, &SwitchStatement>
impl Display for Print<'_, &SwitchStatement>
source§impl Display for Print<'_, &TranslationUnit>
impl Display for Print<'_, &TranslationUnit>
source§impl Display for Print<'_, &TypeExpression>
impl Display for Print<'_, &TypeExpression>
source§impl Display for Print<'_, &UnaryExpression>
impl Display for Print<'_, &UnaryExpression>
Auto Trait Implementations§
impl<'s, T> Freeze for Print<'s, T>where
T: Freeze,
impl<'s, T> RefUnwindSafe for Print<'s, T>where
T: RefUnwindSafe,
impl<'s, T> Send for Print<'s, T>where
T: Send,
impl<'s, T> Sync for Print<'s, T>where
T: Sync,
impl<'s, T> Unpin for Print<'s, T>where
T: Unpin,
impl<'s, T> UnwindSafe for Print<'s, T>where
T: UnwindSafe,
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 moresource§impl<T> Source for T
impl<T> Source for T
§type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a>
where
T: 'a
type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a> where T: 'a
A type this
Source can be sliced into.source§fn read<'a, Chunk>(&'a self, offset: usize) -> Option<Chunk>where
Chunk: Chunk<'a>,
fn read<'a, Chunk>(&'a self, offset: usize) -> Option<Chunk>where
Chunk: Chunk<'a>,
Read a chunk of bytes into an array. Returns
None when reading
out of bounds would occur. Read moresource§unsafe fn read_byte_unchecked(&self, offset: usize) -> u8
unsafe fn read_byte_unchecked(&self, offset: usize) -> u8
Read a byte without doing bounds checks. Read more
source§fn slice(&self, range: Range<usize>) -> Option<<T as Source>::Slice<'_>>
fn slice(&self, range: Range<usize>) -> Option<<T as Source>::Slice<'_>>
Get a slice of the source at given range. This is analogous to
slice::get(range). Read moresource§unsafe fn slice_unchecked(
&self,
range: Range<usize>,
) -> <T as Source>::Slice<'_>
unsafe fn slice_unchecked( &self, range: Range<usize>, ) -> <T as Source>::Slice<'_>
Get a slice of the source at given range. This is analogous to
slice::get_unchecked(range). Read more