Struct lexical_core::Result
source · #[repr(C)]pub struct Result<T: Number> {
pub value: T,
pub error: Error,
}
Expand description
C-compatible result type from parsing strings-to-numbers for FFI.
Fields
value: T
Value from the parser function call.
error: Error
Error information, including the error code and other metadata.
Trait Implementations
sourceimpl<T: PartialEq + Number> PartialEq<Result<T>> for Result<T>
impl<T: PartialEq + Number> PartialEq<Result<T>> for Result<T>
impl<T: Copy + Number> Copy for Result<T>
impl<T: Number> StructuralPartialEq for Result<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Result<T>where
T: RefUnwindSafe,
impl<T> Send for Result<T>
impl<T> Sync for Result<T>
impl<T> Unpin for Result<T>where
T: Unpin,
impl<T> UnwindSafe for Result<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more