pub enum WrapMode {
None,
Wrap,
Mirror,
Clamp,
Border,
}Expand description
How a texture repeats outside [0, 1]:
"wrapMode": {"enum": ["none", "wrap", "mirror", "clamp", "border"]}.
All five are lower case. A texture written "wrapMode": "wrap" once came
back as "None" from FlatCityBuf because a downstream match expected a
different spelling and its _ arm turned the miss into a default; with the
spellings here, the same mistake is a serde error at the boundary and a
non-exhaustive match at every consumer.
Variants§
Trait Implementations§
impl Copy for WrapMode
Source§impl<'de> Deserialize<'de> for WrapMode
impl<'de> Deserialize<'de> for WrapMode
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
impl Eq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl Freeze for WrapMode
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnsafeUnpin for WrapMode
impl UnwindSafe for WrapMode
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