[go: up one dir, main page]

Struct lexical_core::ffi::Result[][src]

#[repr(C)]
pub struct Result<T: Copy> { /* fields omitted */ }

C-compatible result type from parsing strings-to-numbers for FFI.

This is an FFI-safe result type that is returned by the from range APIs, for example, atou8_range.

Implementations

impl<T: Copy> Result<T>[src]

pub fn is_ok(&self) -> bool[src]

Get if result is ok.

pub fn is_err(&self) -> bool[src]

Get if result is an error.

pub fn ok(self) -> Option<T>[src]

Converts result into Option, discarding any error.

pub fn err(self) -> Option<Error>[src]

Converts result into Option, discarding any value.

Trait Implementations

impl<T: Clone + Copy> Clone for Result<T>[src]

impl<T: Copy> Copy for Result<T>[src]

impl<T: Copy> From<Result<T, Error>> for Result<T>[src]

impl<T: Copy> Into<Result<T, Error>> for Result<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Result<T> where
    T: RefUnwindSafe

impl<T> Send for Result<T> where
    T: Send

impl<T> Sync for Result<T> where
    T: Sync

impl<T> Unpin for Result<T> where
    T: Unpin

impl<T> UnwindSafe for Result<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.