pub enum RegistryError {
UnknownStyle(String),
InvalidName(String),
}Expand description
Errors produced by registry operations (set_prefix, insert_style).
These errors carry no source position because registry calls happen outside of markup parsing, where no input string is available to point into.
Variants§
UnknownStyle(String)
The prefix! macro was called with a style name that has not been registered.
InvalidName(String)
A style name was registered that contains [ or ], which are reserved as tag delimiters.
Trait Implementations§
Source§impl Debug for RegistryError
impl Debug for RegistryError
Auto Trait Implementations§
impl Freeze for RegistryError
impl RefUnwindSafe for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl UnsafeUnpin for RegistryError
impl UnwindSafe for RegistryError
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