#[non_exhaustive]pub enum DockLayoutErrorKind {
NotALayout,
UnsupportedVersion,
ExpectedOpen,
ExpectedClose,
ExpectedNode,
BadRatio,
BadShown,
ShownMissing,
UnclosedKey,
BadEscape,
TooDeep,
TrailingText,
}Expand description
What was wrong with a layout’s text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotALayout
It does not start as a dock layout.
UnsupportedVersion
A dock layout of another version, written by a later densa.
ExpectedOpen
( was expected.
ExpectedClose
) was expected.
ExpectedNode
row, column or tabs was expected.
BadRatio
A split’s ratio is not a number from 0 to 1.
BadShown
A group’s shown tab is not a position.
ShownMissing
A group has no panels, or shows one it does not have.
UnclosedKey
A key has no closing quote.
BadEscape
A key has an escape other than \" and \\.
TooDeep
Splits nest deeper than MAX_LAYOUT_DEPTH.
TrailingText
Text follows the layout.
Trait Implementations§
Source§impl Clone for DockLayoutErrorKind
impl Clone for DockLayoutErrorKind
impl Copy for DockLayoutErrorKind
Source§impl Debug for DockLayoutErrorKind
impl Debug for DockLayoutErrorKind
Source§impl Display for DockLayoutErrorKind
impl Display for DockLayoutErrorKind
impl Eq for DockLayoutErrorKind
Source§impl PartialEq for DockLayoutErrorKind
impl PartialEq for DockLayoutErrorKind
impl StructuralPartialEq for DockLayoutErrorKind
Auto Trait Implementations§
impl Freeze for DockLayoutErrorKind
impl RefUnwindSafe for DockLayoutErrorKind
impl Send for DockLayoutErrorKind
impl Sync for DockLayoutErrorKind
impl Unpin for DockLayoutErrorKind
impl UnsafeUnpin for DockLayoutErrorKind
impl UnwindSafe for DockLayoutErrorKind
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