Struct wgsl_parse::syntax::FormalParameter
source · pub struct FormalParameter {
pub attributes: Vec<Spanned<Attribute>>,
pub name: Span,
pub typ: TypeExpression,
}Fields§
§attributes: Vec<Spanned<Attribute>>§name: Span§typ: TypeExpressionTrait Implementations§
source§impl Clone for FormalParameter
impl Clone for FormalParameter
source§fn clone(&self) -> FormalParameter
fn clone(&self) -> FormalParameter
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 FormalParameter
impl Debug for FormalParameter
source§impl PartialEq for FormalParameter
impl PartialEq for FormalParameter
impl StructuralPartialEq for FormalParameter
Auto Trait Implementations§
impl Freeze for FormalParameter
impl RefUnwindSafe for FormalParameter
impl Send for FormalParameter
impl Sync for FormalParameter
impl Unpin for FormalParameter
impl UnwindSafe for FormalParameter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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