#[repr(C)]pub struct Origin3d {
pub x: u32,
pub y: u32,
pub z: u32,
}
Expand description
Origin of a copy to/from a texture.
Corresponds to WebGPU GPUOrigin3D
.
Fields§
§x: u32
X position of the origin
y: u32
Y position of the origin
z: u32
Z position of the origin
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for Origin3d
impl<'de> Deserialize<'de> for Origin3d
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Origin3d, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Origin3d, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Origin3d
impl Serialize for Origin3d
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Origin3d
impl Eq for Origin3d
impl StructuralEq for Origin3d
impl StructuralPartialEq for Origin3d
Auto Trait Implementations§
impl RefUnwindSafe for Origin3d
impl Send for Origin3d
impl Sync for Origin3d
impl Unpin for Origin3d
impl UnwindSafe for Origin3d
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more