#[non_exhaustive]pub enum DockLayoutError {
Syntax {
line: usize,
column: usize,
message: String,
},
NotALayout,
UnsupportedVersion(u64),
Invalid(String),
}Expand description
Why a saved text could not be read. Nothing was changed; the app goes on with the arrangement it has, or the one it starts from.
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.
Syntax
It is not well-formed text in the format.
Fields
NotALayout
It is well-formed, but says nothing of being an arrangement: it has no version.
UnsupportedVersion(u64)
It was saved by a newer build, in a version this one cannot read.
Invalid(String)
It has the version, but a part of it is not what the version says.
Trait Implementations§
Source§impl Clone for DockLayoutError
impl Clone for DockLayoutError
Source§fn clone(&self) -> DockLayoutError
fn clone(&self) -> DockLayoutError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DockLayoutError
impl Debug for DockLayoutError
Source§impl Display for DockLayoutError
impl Display for DockLayoutError
impl Eq for DockLayoutError
Source§impl Error for DockLayoutError
impl Error for DockLayoutError
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 DockLayoutError
impl PartialEq for DockLayoutError
impl StructuralPartialEq for DockLayoutError
Auto Trait Implementations§
impl Freeze for DockLayoutError
impl RefUnwindSafe for DockLayoutError
impl Send for DockLayoutError
impl Sync for DockLayoutError
impl Unpin for DockLayoutError
impl UnsafeUnpin for DockLayoutError
impl UnwindSafe for DockLayoutError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more