pub enum FixedTextError {
WrongCodepointCount {
expected: usize,
found: usize,
},
}Available on crate feature
text_fixed only.Expand description
Error returned when converting into a fixed-codepoint string fails.
Variants§
WrongCodepointCount
The input contains fewer or more than N Unicode scalar values.
Trait Implementations§
Source§impl Clone for FixedTextError
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Clone for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn clone(&self) -> FixedTextError
fn clone(&self) -> FixedTextError
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 FixedTextError
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Debug for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl Display for FixedTextError
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Display for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl Error for FixedTextError
Available on (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and (crate features io-std or io) only.
impl Error for FixedTextError
Available on (crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed) and (crate features io-std or io) only.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 From<FixedUtf16Error> for FixedTextError
Available on (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf16 only.
impl From<FixedUtf16Error> for FixedTextError
Available on (crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf16 only.Source§fn from(e: FixedUtf16Error) -> Self
fn from(e: FixedUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<FixedUtf32Error> for FixedTextError
Available on (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf32 only.
impl From<FixedUtf32Error> for FixedTextError
Available on (crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf32 only.Source§fn from(e: FixedUtf32Error) -> Self
fn from(e: FixedUtf32Error) -> Self
Converts to this type from the input type.
Source§impl From<FixedUtf8Error> for FixedTextError
Available on (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf8 only.
impl From<FixedUtf8Error> for FixedTextError
Available on (crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf8 only.Source§fn from(e: FixedUtf8Error) -> Self
fn from(e: FixedUtf8Error) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FixedTextError
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl PartialEq for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl Copy for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl Eq for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl StructuralPartialEq for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Auto Trait Implementations§
impl Freeze for FixedTextError
impl RefUnwindSafe for FixedTextError
impl Send for FixedTextError
impl Sync for FixedTextError
impl Unpin for FixedTextError
impl UnwindSafe for FixedTextError
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