pub enum CssomError {
NotFound,
Syntax,
IndexSize,
HierarchyRequest,
InvalidState,
NotSupported,
}Expand description
Errors from CSSOM mutation operations, mirroring the DOMException names
which the corresponding JavaScript APIs throw.
Variants§
NotFound
The owner node has no associated stylesheet, or the rule path does not resolve to a rule (list).
Syntax
SyntaxError
IndexSize
IndexSizeError
HierarchyRequest
HierarchyRequestError
InvalidState
InvalidStateError
NotSupported
NotSupportedError
Implementations§
Source§impl CssomError
impl CssomError
Sourcepub fn dom_exception_name(self) -> &'static str
pub fn dom_exception_name(self) -> &'static str
The DOMException name corresponding to this error
Trait Implementations§
Source§impl Clone for CssomError
impl Clone for CssomError
impl Copy for CssomError
Source§impl Debug for CssomError
impl Debug for CssomError
impl Eq for CssomError
Source§impl From<RulesMutateError> for CssomError
impl From<RulesMutateError> for CssomError
Source§fn from(err: RulesMutateError) -> Self
fn from(err: RulesMutateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CssomError
impl PartialEq for CssomError
impl StructuralPartialEq for CssomError
Auto Trait Implementations§
impl Freeze for CssomError
impl RefUnwindSafe for CssomError
impl Send for CssomError
impl Sync for CssomError
impl Unpin for CssomError
impl UnsafeUnpin for CssomError
impl UnwindSafe for CssomError
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,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert