Struct wgsl_parser::decl::StructBody
source · pub struct StructBody {
pub open_brace: Token,
pub fields: Arc<[Decl]>,
pub close_brace: Token,
}Fields§
§open_brace: Token§fields: Arc<[Decl]>§close_brace: TokenTrait Implementations§
source§impl Clone for StructBody
impl Clone for StructBody
source§fn clone(&self) -> StructBody
fn clone(&self) -> StructBody
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 StructBody
impl Debug for StructBody
source§impl DebugLisp for StructBody
impl DebugLisp for StructBody
source§impl Parse for StructBody
impl Parse for StructBody
Auto Trait Implementations§
impl Freeze for StructBody
impl RefUnwindSafe for StructBody
impl Send for StructBody
impl Sync for StructBody
impl Unpin for StructBody
impl UnwindSafe for StructBody
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