Enum shalrath::repr::TextureOffset
source · pub enum TextureOffset {
Standard {
u: f32,
v: f32,
},
Valve {
u: TexturePlane,
v: TexturePlane,
},
}
Expand description
Format-specific texture offset data.
Variants§
Standard
Standard format, U/V offsets along the closest world texture plane.
Valve
Valve format, U/V offsets along arbitrary texture planes.
Trait Implementations§
source§impl Clone for TextureOffset
impl Clone for TextureOffset
source§fn clone(&self) -> TextureOffset
fn clone(&self) -> TextureOffset
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 TextureOffset
impl Debug for TextureOffset
source§impl Default for TextureOffset
impl Default for TextureOffset
source§impl<'de> Deserialize<'de> for TextureOffset
impl<'de> Deserialize<'de> for TextureOffset
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for TextureOffset
impl Display for TextureOffset
source§impl PartialEq for TextureOffset
impl PartialEq for TextureOffset
source§fn eq(&self, other: &TextureOffset) -> bool
fn eq(&self, other: &TextureOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TextureOffset
impl PartialOrd for TextureOffset
source§fn partial_cmp(&self, other: &TextureOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &TextureOffset) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TextureOffset
impl Serialize for TextureOffset
impl Copy for TextureOffset
impl StructuralPartialEq for TextureOffset
Auto Trait Implementations§
impl Freeze for TextureOffset
impl RefUnwindSafe for TextureOffset
impl Send for TextureOffset
impl Sync for TextureOffset
impl Unpin for TextureOffset
impl UnwindSafe for TextureOffset
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