pub struct Struct {
pub attributes: Vec<Spanned<Attribute>>,
pub visibility: Visibility,
pub ident: Ident,
pub members: Vec<Spanned<StructMember>>,
}Fields§
§attributes: Vec<Spanned<Attribute>>WESL extension
visibility: Visibility§ident: Ident§members: Vec<Spanned<StructMember>>Implementations§
Trait Implementations§
Source§impl From<Struct> for GlobalDeclaration
impl From<Struct> for GlobalDeclaration
Source§fn from(value: Struct) -> GlobalDeclaration
fn from(value: Struct) -> GlobalDeclaration
Converts to this type from the input type.
impl StructuralPartialEq for Struct
Source§impl SyntaxNode for Struct
impl SyntaxNode for Struct
Source§fn attributes(&self) -> &[Spanned<Attribute>]
fn attributes(&self) -> &[Spanned<Attribute>]
List all attributes of a syntax node.
Source§fn attributes_mut(&mut self) -> &mut [Spanned<Attribute>]
fn attributes_mut(&mut self) -> &mut [Spanned<Attribute>]
List all attributes of a syntax node.
Source§fn retain_attributes_mut<F>(&mut self, f: F)
fn retain_attributes_mut<F>(&mut self, f: F)
Remove attributes with predicate.
Source§fn contains_attribute(&self, attribute: &Attribute) -> bool
fn contains_attribute(&self, attribute: &Attribute) -> bool
Whether the node contains an attribute.
Source§impl Visit<TypeExpression> for Struct
impl Visit<TypeExpression> for Struct
Source§fn visit<'a>(&'a self) -> impl Iterator<Item = &'a TypeExpression>where
TypeExpression: 'a,
fn visit<'a>(&'a self) -> impl Iterator<Item = &'a TypeExpression>where
TypeExpression: 'a,
Source§fn visit_mut<'a>(&'a mut self) -> impl Iterator<Item = &'a mut TypeExpression>where
TypeExpression: 'a,
fn visit_mut<'a>(&'a mut self) -> impl Iterator<Item = &'a mut TypeExpression>where
TypeExpression: 'a,
Mutable version of
Self::visit.Source§fn visit_rec_mut<'a, F>(&'a mut self, f: &mut F)
fn visit_rec_mut<'a, F>(&'a mut self, f: &mut F)
Mutable version of
Self::visit_rec.Auto Trait Implementations§
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnsafeUnpin for Struct
impl UnwindSafe for Struct
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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