pub enum BlocksError {
InvalidBlockType(String),
InvalidHeaderLevel {
level: u8,
},
EmptyContent {
block_type: String,
},
ConversionError {
message: String,
},
SerializationError(String),
InvalidUrl {
url: String,
},
InvalidImage {
reason: String,
},
ValidationError {
message: String,
},
InvalidTable {
reason: String,
},
InvalidColumns {
reason: String,
},
InvalidEmbed {
reason: String,
},
CssError {
reason: String,
},
}Expand description
Error types for the blocks library
Variants§
InvalidBlockType(String)
InvalidHeaderLevel
EmptyContent
ConversionError
SerializationError(String)
InvalidUrl
InvalidImage
ValidationError
InvalidTable
InvalidColumns
InvalidEmbed
CssError
Trait Implementations§
Source§impl Clone for BlocksError
impl Clone for BlocksError
Source§fn clone(&self) -> BlocksError
fn clone(&self) -> BlocksError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlocksError
impl Debug for BlocksError
Source§impl Display for BlocksError
impl Display for BlocksError
Source§impl Error for BlocksError
impl Error for BlocksError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for BlocksError
impl From<Error> for BlocksError
Source§impl PartialEq for BlocksError
impl PartialEq for BlocksError
impl StructuralPartialEq for BlocksError
Auto Trait Implementations§
impl Freeze for BlocksError
impl RefUnwindSafe for BlocksError
impl Send for BlocksError
impl Sync for BlocksError
impl Unpin for BlocksError
impl UnwindSafe for BlocksError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)