#[non_exhaustive]pub enum DockspaceError {
Show 16 variants
MissingRootId,
ZeroRootId,
UnsupportedDockNodeFlags {
bits: i32,
},
InvalidHostPosition {
position: [f32; 2],
},
InvalidHostSize {
size: [f32; 2],
},
HostWindowNameTooLong {
bytes: usize,
max_bytes: usize,
},
InvalidWindowClass(WindowClassError),
InvalidSplitRatio {
ratio: f32,
},
DuplicateWindowKey {
first_key: String,
second_key: String,
id: Id,
},
LayoutTooLarge,
DockingDisabled,
DuplicateDockspaceSubmission {
root_id: Id,
},
ExistingNodeIsNotDockspaceRoot {
id: Id,
},
WindowSubmittedBeforeDockspace {
root_id: Id,
},
NodeCreationFailed {
id: Id,
},
SplitFailed {
direction: DockSplit,
ratio: f32,
},
}Expand description
Validation or submission failure for a dockspace.
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.
MissingRootId
ZeroRootId
UnsupportedDockNodeFlags
InvalidHostPosition
InvalidHostSize
HostWindowNameTooLong
InvalidWindowClass(WindowClassError)
InvalidSplitRatio
DuplicateWindowKey
LayoutTooLarge
DockingDisabled
DuplicateDockspaceSubmission
ExistingNodeIsNotDockspaceRoot
WindowSubmittedBeforeDockspace
NodeCreationFailed
SplitFailed
Trait Implementations§
Source§impl Clone for DockspaceError
impl Clone for DockspaceError
Source§fn clone(&self) -> DockspaceError
fn clone(&self) -> DockspaceError
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 DockspaceError
impl Debug for DockspaceError
Source§impl Display for DockspaceError
impl Display for DockspaceError
Source§impl Error for DockspaceError
impl Error for DockspaceError
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 From<WindowClassError> for DockspaceError
impl From<WindowClassError> for DockspaceError
Source§fn from(source: WindowClassError) -> Self
fn from(source: WindowClassError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DockspaceError
impl PartialEq for DockspaceError
impl StructuralPartialEq for DockspaceError
Auto Trait Implementations§
impl Freeze for DockspaceError
impl RefUnwindSafe for DockspaceError
impl Send for DockspaceError
impl Sync for DockspaceError
impl Unpin for DockspaceError
impl UnsafeUnpin for DockspaceError
impl UnwindSafe for DockspaceError
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