pub enum WrapElementError {
NonWrapperElement(TagType),
SingleChildExceeded(TagType),
InvalidIndex(usize, usize),
}
Expand description
Defines Html wrapping error.
Variants§
NonWrapperElement(TagType)
Error when wrapping with a no-child Html element.
SingleChildExceeded(TagType)
Error when wrapping multiple Html elements wwith a single-child Html element.
InvalidIndex(usize, usize)
Error when wrapping a sub-element at an invalid index.
Trait Implementations§
Source§impl Debug for WrapElementError
impl Debug for WrapElementError
Auto Trait Implementations§
impl Freeze for WrapElementError
impl RefUnwindSafe for WrapElementError
impl Send for WrapElementError
impl Sync for WrapElementError
impl Unpin for WrapElementError
impl UnwindSafe for WrapElementError
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