pub enum VisibleHintError {
Hint(HintError),
Capacity,
InvalidLabel {
index: usize,
},
}Expand description
Errors from the opt-in visible-control formatter. Every error leaves the
entire caller buffer unchanged; the legacy HintError is preserved.
use ferravex_render::input::{HintError, VisibleHintError};
let error = VisibleHintError::Hint(HintError::BufferTooSmall { required: 12 });
assert_eq!(error.to_string(), "hint buffer requires 12 bytes");Variants§
Hint(HintError)
Capacity
More than twice MAX_TOUCH_CONTROLS descriptors were supplied.
InvalidLabel
Descriptor index: missing installed slot, code not emitted by that slot,
empty/over-96-byte/control-character label, or duplicate (slot, code).
Trait Implementations§
Source§impl Clone for VisibleHintError
impl Clone for VisibleHintError
Source§fn clone(&self) -> VisibleHintError
fn clone(&self) -> VisibleHintError
Returns a duplicate of the value. Read more
1.0.0 · 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 VisibleHintError
impl Debug for VisibleHintError
Source§impl Display for VisibleHintError
impl Display for VisibleHintError
Source§impl Error for VisibleHintError
impl Error for VisibleHintError
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 VisibleHintError
impl PartialEq for VisibleHintError
impl Copy for VisibleHintError
impl Eq for VisibleHintError
impl StructuralPartialEq for VisibleHintError
Auto Trait Implementations§
impl Freeze for VisibleHintError
impl RefUnwindSafe for VisibleHintError
impl Send for VisibleHintError
impl Sync for VisibleHintError
impl Unpin for VisibleHintError
impl UnwindSafe for VisibleHintError
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