Enum SourceType
#[non_exhaustive]pub enum SourceType {
Unknown,
Vector,
Raster,
RasterDem,
GeoJson,
Image,
Video,
Annotations,
CustomVector,
Other(u32),
}Expand description
Style source type values returned by native style source metadata.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
§impl SourceType
impl SourceType
pub fn from_raw(raw: u32) -> SourceType
pub fn from_raw(raw: u32) -> SourceType
Converts a raw C ABI source type value into a Rust value, preserving future values.
Trait Implementations§
§impl Clone for SourceType
impl Clone for SourceType
§fn clone(&self) -> SourceType
fn clone(&self) -> SourceType
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 more§impl Debug for SourceType
impl Debug for SourceType
§impl Hash for SourceType
impl Hash for SourceType
§impl PartialEq for SourceType
impl PartialEq for SourceType
impl Copy for SourceType
impl Eq for SourceType
impl StructuralPartialEq for SourceType
Auto Trait Implementations§
impl Freeze for SourceType
impl RefUnwindSafe for SourceType
impl Send for SourceType
impl Sync for SourceType
impl Unpin for SourceType
impl UnsafeUnpin for SourceType
impl UnwindSafe for SourceType
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