pub struct ArrayInstance {
pub runtime_sized: bool,
/* private fields */
}Expand description
Instance of an array<T, N> type.
Reference: https://www.w3.org/TR/WGSL/#array-types
Fields§
§runtime_sized: boolImplementations§
Source§impl ArrayInstance
impl ArrayInstance
Trait Implementations§
Source§impl Clone for ArrayInstance
impl Clone for ArrayInstance
Source§fn clone(&self) -> ArrayInstance
fn clone(&self) -> ArrayInstance
Returns a duplicate 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 Convert for ArrayInstance
impl Convert for ArrayInstance
Source§fn convert_to(&self, ty: &Type) -> Option<Self>
fn convert_to(&self, ty: &Type) -> Option<Self>
Convert an instance to another type, if a feasible conversion exists. Read more
Source§fn convert_inner_to(&self, ty: &Type) -> Option<Self>
fn convert_inner_to(&self, ty: &Type) -> Option<Self>
Convert an instance by changing its inner type to another. Read more
Source§fn concretize(&self) -> Option<Self>
fn concretize(&self) -> Option<Self>
Convert an abstract instance to a concrete type. Read more
Source§impl Debug for ArrayInstance
impl Debug for ArrayInstance
Source§impl Default for ArrayInstance
impl Default for ArrayInstance
Source§fn default() -> ArrayInstance
fn default() -> ArrayInstance
Returns the “default value” for a type. Read more
Source§impl Display for ArrayInstance
impl Display for ArrayInstance
Source§impl From<ArrayInstance> for Instance
impl From<ArrayInstance> for Instance
Source§fn from(value: ArrayInstance) -> Self
fn from(value: ArrayInstance) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for ArrayInstance
impl IntoIterator for ArrayInstance
Source§impl PartialEq for ArrayInstance
impl PartialEq for ArrayInstance
Source§impl Ty for ArrayInstance
impl Ty for ArrayInstance
impl StructuralPartialEq for ArrayInstance
Auto Trait Implementations§
impl Freeze for ArrayInstance
impl !RefUnwindSafe for ArrayInstance
impl !Send for ArrayInstance
impl !Sync for ArrayInstance
impl Unpin for ArrayInstance
impl !UnwindSafe for ArrayInstance
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§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