pub enum TileEncoding {
Jpeg,
Webp,
}Expand description
How a tile’s pixels are encoded.
Variants§
Jpeg
Baseline JPEG. The default: universally decodable by a browser
<img>/createImageBitmap, and what #1142 measured against.
Webp
WebP. Smaller at equal quality, but the encoder is heavier — #1142 showed encode time is already 88% of the per-frame budget, so this is here as a wire-format option to evaluate, not a default to adopt blind.
Implementations§
Trait Implementations§
Source§impl Clone for TileEncoding
impl Clone for TileEncoding
Source§fn clone(&self) -> TileEncoding
fn clone(&self) -> TileEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TileEncoding
Source§impl Debug for TileEncoding
impl Debug for TileEncoding
Source§impl Default for TileEncoding
impl Default for TileEncoding
Source§fn default() -> TileEncoding
fn default() -> TileEncoding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TileEncoding
impl<'de> Deserialize<'de> for TileEncoding
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 TileEncoding
Source§impl PartialEq for TileEncoding
impl PartialEq for TileEncoding
Source§impl Serialize for TileEncoding
impl Serialize for TileEncoding
impl StructuralPartialEq for TileEncoding
Auto Trait Implementations§
impl Freeze for TileEncoding
impl RefUnwindSafe for TileEncoding
impl Send for TileEncoding
impl Sync for TileEncoding
impl Unpin for TileEncoding
impl UnsafeUnpin for TileEncoding
impl UnwindSafe for TileEncoding
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.