pub struct PtrInstance {
pub ptr: RefInstance,
}Expand description
Instance of a ptr<AS,T,AM> type.
Reference: https://www.w3.org/TR/WGSL/#ref-ptr-types
Fields§
§ptr: RefInstanceTrait Implementations§
Source§impl Clone for PtrInstance
impl Clone for PtrInstance
Source§fn clone(&self) -> PtrInstance
fn clone(&self) -> PtrInstance
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 Debug for PtrInstance
impl Debug for PtrInstance
Source§impl Display for PtrInstance
impl Display for PtrInstance
Source§impl From<PtrInstance> for Instance
impl From<PtrInstance> for Instance
Source§fn from(value: PtrInstance) -> Self
fn from(value: PtrInstance) -> Self
Converts to this type from the input type.
Source§impl From<PtrInstance> for RefInstance
impl From<PtrInstance> for RefInstance
Source§fn from(p: PtrInstance) -> Self
fn from(p: PtrInstance) -> Self
Converts to this type from the input type.
Source§impl From<RefInstance> for PtrInstance
impl From<RefInstance> for PtrInstance
Source§fn from(r: RefInstance) -> Self
fn from(r: RefInstance) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PtrInstance
impl PartialEq for PtrInstance
Source§impl Ty for PtrInstance
impl Ty for PtrInstance
impl StructuralPartialEq for PtrInstance
Auto Trait Implementations§
impl Freeze for PtrInstance
impl !RefUnwindSafe for PtrInstance
impl !Send for PtrInstance
impl !Sync for PtrInstance
impl Unpin for PtrInstance
impl !UnwindSafe for PtrInstance
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