pub struct TypeExpression {
pub path: Option<ModulePath>,
pub ident: Ident,
pub template_args: Option<Vec<TemplateArg>>,
}Fields§
§path: Option<ModulePath>WESL extension
ident: Ident§template_args: Option<Vec<TemplateArg>>Implementations§
Source§impl TypeExpression
impl TypeExpression
Sourcepub fn new(ident: Ident) -> TypeExpression
pub fn new(ident: Ident) -> TypeExpression
New TypeExpression with no template.
Trait Implementations§
Source§impl Clone for TypeExpression
impl Clone for TypeExpression
Source§fn clone(&self) -> TypeExpression
fn clone(&self) -> TypeExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeExpression
impl Debug for TypeExpression
Source§impl Display for TypeExpression
impl Display for TypeExpression
Source§impl From<Ident> for TypeExpression
impl From<Ident> for TypeExpression
Source§fn from(ident: Ident) -> TypeExpression
fn from(ident: Ident) -> TypeExpression
Converts to this type from the input type.
Source§impl From<TypeExpression> for Expression
impl From<TypeExpression> for Expression
Source§fn from(value: TypeExpression) -> Expression
fn from(value: TypeExpression) -> Expression
Converts to this type from the input type.
Source§impl PartialEq for TypeExpression
impl PartialEq for TypeExpression
impl StructuralPartialEq for TypeExpression
Source§impl SyntaxNode for TypeExpression
impl SyntaxNode for TypeExpression
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 contains_attribute(&self, attribute: &Attribute) -> bool
fn contains_attribute(&self, attribute: &Attribute) -> bool
Whether the node contains an attribute.
Source§impl Visit<TypeExpression> for Expression
impl Visit<TypeExpression> for Expression
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.Source§impl Visit<TypeExpression> for TypeExpression
impl Visit<TypeExpression> for TypeExpression
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.Source§impl Visit<TypeExpression> for Statement
impl Visit<TypeExpression> for Statement
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.Source§impl Visit<TypeExpression> for Attribute
impl Visit<TypeExpression> for Attribute
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.Source§impl Visit<TypeExpression> for TranslationUnit
impl Visit<TypeExpression> for TranslationUnit
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.Source§impl Visit<TypeExpression> for GlobalDeclaration
impl Visit<TypeExpression> for GlobalDeclaration
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.Source§impl Visit<TypeExpression> for Declaration
impl Visit<TypeExpression> for Declaration
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.Source§impl Visit<TypeExpression> for TypeAlias
impl Visit<TypeExpression> for TypeAlias
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.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.Source§impl Visit<TypeExpression> for StructMember
impl Visit<TypeExpression> for StructMember
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.Source§impl Visit<TypeExpression> for Function
impl Visit<TypeExpression> for Function
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.Source§impl Visit<TypeExpression> for ConstAssert
impl Visit<TypeExpression> for ConstAssert
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 TypeExpression
impl RefUnwindSafe for TypeExpression
impl Send for TypeExpression
impl Sync for TypeExpression
impl Unpin for TypeExpression
impl UnsafeUnpin for TypeExpression
impl UnwindSafe for TypeExpression
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