pub enum StringDecodeError {
BadEscape,
BadUtf8,
}Expand description
Why a STRING_CONTENT token’s source could not be reduced to a value. The
two failures matter separately to the s-expression projector, which shows
them differently; a consumer that just wants the value treats both as “this
literal does not denote a string”.
Variants§
BadEscape
A malformed backslash escape (\xq, \q, \400).
BadUtf8
Well-formed bytes that don’t decode as UTF-8 (\xff). Julia’s String
holds them; Rust’s does not.
Trait Implementations§
Source§impl Clone for StringDecodeError
impl Clone for StringDecodeError
impl Copy for StringDecodeError
Source§impl Debug for StringDecodeError
impl Debug for StringDecodeError
impl Eq for StringDecodeError
Source§impl PartialEq for StringDecodeError
impl PartialEq for StringDecodeError
impl StructuralPartialEq for StringDecodeError
Auto Trait Implementations§
impl Freeze for StringDecodeError
impl RefUnwindSafe for StringDecodeError
impl Send for StringDecodeError
impl Sync for StringDecodeError
impl Unpin for StringDecodeError
impl UnsafeUnpin for StringDecodeError
impl UnwindSafe for StringDecodeError
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