pub enum ByteCompileError {
Duplicate(Vec<Spanned<String>>),
Invalid(Spanned<String>),
}Expand description
Errors returned by RDescription::byte_compile.
Variants§
Duplicate(Vec<Spanned<String>>)
The ByteCompile field occurs more than once.
Invalid(Spanned<String>)
The ByteCompile value is not a supported logical value.
Implementations§
Source§impl ByteCompileError
impl ByteCompileError
Sourcepub fn occurrences(&self) -> &[Spanned<String>]
pub fn occurrences(&self) -> &[Spanned<String>]
Returns the values responsible for the ByteCompile error.
Trait Implementations§
Source§impl Clone for ByteCompileError
impl Clone for ByteCompileError
Source§impl Debug for ByteCompileError
impl Debug for ByteCompileError
Source§impl Display for ByteCompileError
impl Display for ByteCompileError
impl Eq for ByteCompileError
Source§impl Error for ByteCompileError
impl Error for ByteCompileError
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 ByteCompileError
impl PartialEq for ByteCompileError
impl StructuralPartialEq for ByteCompileError
Auto Trait Implementations§
impl Freeze for ByteCompileError
impl RefUnwindSafe for ByteCompileError
impl Send for ByteCompileError
impl Sync for ByteCompileError
impl Unpin for ByteCompileError
impl UnsafeUnpin for ByteCompileError
impl UnwindSafe for ByteCompileError
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