pub enum IntoRError {
StringTooLong {
len: usize,
},
LengthOverflow {
len: usize,
},
Inner(String),
}Expand description
Error returned by IntoR::try_into_sexp
for types whose conversion to R can fail.
§Variants
StringTooLong— a Rust string exceeds R’si32length limit (~2 GB)LengthOverflow— a collection length exceeds R’sR_xlen_tcapacityInner— a sub-conversion failed (wraps the inner error message)
Variants§
StringTooLong
A string’s byte length exceeds i32::MAX.
LengthOverflow
A collection’s element count exceeds the target R vector capacity.
Inner(String)
A nested conversion failed.
Trait Implementations§
Source§impl Clone for IntoRError
impl Clone for IntoRError
Source§fn clone(&self) -> IntoRError
fn clone(&self) -> IntoRError
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 IntoRError
impl Debug for IntoRError
Source§impl Display for IntoRError
impl Display for IntoRError
Source§impl Error for IntoRError
impl Error for IntoRError
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()
Auto Trait Implementations§
impl Freeze for IntoRError
impl RefUnwindSafe for IntoRError
impl Send for IntoRError
impl Sync for IntoRError
impl Unpin for IntoRError
impl UnsafeUnpin for IntoRError
impl UnwindSafe for IntoRError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> RDisplay for Twhere
T: Display,
impl<T> RDisplay for Twhere
T: Display,
Source§fn as_r_string(&self) -> String
fn as_r_string(&self) -> String
Convert to a user-friendly string.
Source§impl<T> RError for Twhere
T: Error,
impl<T> RError for Twhere
T: Error,
Source§fn error_message(&self) -> String
fn error_message(&self) -> String
Get the error message (Display representation).
Source§fn error_chain(&self) -> Vec<String>
fn error_chain(&self) -> Vec<String>
Get all error messages in the chain, from outermost to innermost.
Source§fn error_chain_length(&self) -> i32
fn error_chain_length(&self) -> i32
Get the number of errors in the chain.