pub enum StyleError {
DuplicateSourceId(String),
DuplicateLayerId(String),
MissingSource(String),
SourceKindMismatch {
layer_id: String,
source_id: String,
expected: &'static str,
actual: &'static str,
},
MissingSourceLayer {
layer_id: String,
source_id: String,
source_layer: String,
},
}Expand description
Style/runtime errors.
Variants§
DuplicateSourceId(String)
Attempted to add a source whose id already exists.
DuplicateLayerId(String)
Attempted to add a layer whose id already exists.
MissingSource(String)
A style layer referenced a source that does not exist.
SourceKindMismatch
A style layer referenced a source of the wrong kind.
Fields
MissingSourceLayer
A vector style layer referenced a source layer that does not exist.
Trait Implementations§
Source§impl Clone for StyleError
impl Clone for StyleError
Source§fn clone(&self) -> StyleError
fn clone(&self) -> StyleError
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 moreSource§impl Debug for StyleError
impl Debug for StyleError
Source§impl Display for StyleError
impl Display for StyleError
Source§impl Error for StyleError
impl Error for StyleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<StyleError> for StyleSpecError
impl From<StyleError> for StyleSpecError
Source§fn from(value: StyleError) -> Self
fn from(value: StyleError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StyleError
impl PartialEq for StyleError
impl Eq for StyleError
impl StructuralPartialEq for StyleError
Auto Trait Implementations§
impl Freeze for StyleError
impl RefUnwindSafe for StyleError
impl Send for StyleError
impl Sync for StyleError
impl Unpin for StyleError
impl UnsafeUnpin for StyleError
impl UnwindSafe for StyleError
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