pub enum ToolbarError {
DuplicateToolId(ToolId),
UnknownRadioGroup(ToolId),
RadioGroupNotCheckable(ToolId),
UnknownTool(ToolId),
NotCheckable(ToolId),
}Expand description
A model rule violation, surfaced by the Ui setters as
GuiError::Backend with this message.
Variants§
DuplicateToolId(ToolId)
The same ToolId appears twice.
UnknownRadioGroup(ToolId)
A radio_group value does not match any tool in the list.
RadioGroupNotCheckable(ToolId)
The radio-group owner is not checkable, so the group cannot be exclusive.
UnknownTool(ToolId)
The requested tool id is not in the list.
NotCheckable(ToolId)
A checked state was set on a tool that is not checkable.
Trait Implementations§
Source§impl Clone for ToolbarError
impl Clone for ToolbarError
impl Copy for ToolbarError
Source§impl Debug for ToolbarError
impl Debug for ToolbarError
Source§impl Display for ToolbarError
impl Display for ToolbarError
impl Eq for ToolbarError
Source§impl Error for ToolbarError
impl Error for ToolbarError
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 ToolbarError
impl PartialEq for ToolbarError
impl StructuralPartialEq for ToolbarError
Auto Trait Implementations§
impl Forget for ToolbarError
impl Freeze for ToolbarError
impl Move for ToolbarError
impl RefUnwindSafe for ToolbarError
impl Send for ToolbarError
impl Sync for ToolbarError
impl Unpin for ToolbarError
impl UnsafeUnpin for ToolbarError
impl UnwindSafe for ToolbarError
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