#[non_exhaustive]pub enum StyleError {
Failed,
MalformedStyle,
UnsupportedLayer,
InvalidExpression,
SupportOmitted,
Unsupported,
}Expand description
Error codes that occurs while parsing the style in VectorRenderer.
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.
Failed
An unspecified error occurred during the operation.
MalformedStyle
A JSON node in the style has the wrong type (e.g. an object where there should be an array).
UnsupportedLayer
An unsupported layer type was encountered.
InvalidExpression
An invalid or unrecognized expression was encountered.
SupportOmitted
Libshumate was compiled without vector tile support.
Unsupported
An unsupported style spec feature was encountered.
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 ErrorDomain for StyleError
impl ErrorDomain for StyleError
Source§impl From<StyleError> for Value
impl From<StyleError> for Value
Source§fn from(v: StyleError) -> Self
fn from(v: StyleError) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for StyleError
impl<'a> FromValue<'a> for StyleError
Source§type Checker = GenericValueTypeChecker<StyleError>
type Checker = GenericValueTypeChecker<StyleError>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for StyleError
impl HasParamSpec for StyleError
type ParamSpec = ParamSpecEnum
Source§type SetValue = StyleError
type SetValue = StyleError
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, StyleError) -> ParamSpecEnumBuilder<'_, StyleError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for StyleError
impl Hash for StyleError
Source§impl Ord for StyleError
impl Ord for StyleError
Source§fn cmp(&self, other: &StyleError) -> Ordering
fn cmp(&self, other: &StyleError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleError
impl PartialEq for StyleError
Source§impl PartialOrd for StyleError
impl PartialOrd for StyleError
Source§impl StaticType for StyleError
impl StaticType for StyleError
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for StyleError
impl ToValue for StyleError
Source§impl ValueType for StyleError
impl ValueType for StyleError
Source§type Type = StyleError
type Type = StyleError
Type to get the
Type from. Read moreimpl Copy 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToSendValue for T
impl<T> ToSendValue for T
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.