pub enum StructureError {
Leaf,
End,
Window,
Run,
}Expand description
Why a value could not be built from the parts given for it.
A reader of history rebuilds values node by node and run by run
(Node::leaf, List::from_parts,
Text::of_block); each part it gives is checked
here, so a value this crate holds keeps its invariants whatever it was
read from.
Variants§
Leaf
A leaf of no elements or of more than eight.
End
A list’s front or back of more than eight elements.
Window
A list takes elements from beyond the end of its tree.
Run
A run that does not lie within its block, or that begins or ends inside a character.
Trait Implementations§
Source§impl Clone for StructureError
impl Clone for StructureError
impl Copy for StructureError
Source§impl Debug for StructureError
impl Debug for StructureError
Source§impl Display for StructureError
impl Display for StructureError
impl Eq for StructureError
Source§impl Error for StructureError
impl Error for StructureError
1.30.0 · Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for StructureError
impl PartialEq for StructureError
impl StructuralPartialEq for StructureError
Auto Trait Implementations§
impl Forget for StructureError
impl Freeze for StructureError
impl Move for StructureError
impl RefUnwindSafe for StructureError
impl Send for StructureError
impl Sync for StructureError
impl Unpin for StructureError
impl UnsafeUnpin for StructureError
impl UnwindSafe for StructureError
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