[−][src]Trait rustils::parse::long::ToI64
Required methods
fn to_i64_res(self) -> ParseResultI64
fn to_i64(self) -> i64
Implementations on Foreign Types
impl ToI64 for bool
[src]
fn to_i64_res(self) -> ParseResultI64
[src]
Parse bool
to
i64
(see more: bool_to_i64_res
)
Examples
use rustils::parse::long::ToI64; assert_eq!(true.to_i64_res(), Ok(1_i64)); assert_eq!(false.to_i64_res(), Ok(0_i64));
fn to_i64(self) -> i64
[src]
Parse bool
to
i64
(see more: bool_to_i64
)
Examples
use rustils::parse::long::ToI64; assert_eq!(true.to_i64(), 1_i64); assert_eq!(false.to_i64(), 0_i64);
impl ToI64 for f32
[src]
fn to_i64_res(self) -> ParseResultI64
[src]
fn to_i64(self) -> i64
[src]
impl ToI64 for u64
[src]
fn to_i64_res(self) -> ParseResultI64
[src]
Parse u64
to
i64
(see more: u64_to_i64_res
)
Examples
use rustils::parse::long::ToI64; assert_eq!(0_u64.to_i64_res(), Ok(0_i64)); assert_eq!(9223372036854775807_u64.to_i64_res(), Ok(9223372036854775807_i64));
fn to_i64(self) -> i64
[src]
Parse u64
to
i64
(see more: u64_to_i64
)
Examples
use rustils::parse::long::ToI64; assert_eq!(0_u64.to_i64(), 0_i64); assert_eq!(9223372036854775807_u64.to_i64(), 9223372036854775807_i64);
impl ToI64 for f64
[src]
fn to_i64_res(self) -> ParseResultI64
[src]
fn to_i64(self) -> i64
[src]
impl ToI64 for usize
[src]
fn to_i64_res(self) -> ParseResultI64
[src]
Parse usize
to
i64
(see more: usize_to_i64_res
)
Examples
use rustils::parse::long::ToI64; assert_eq!(0_usize.to_i64_res(), Ok(0_i64)); assert_eq!(9223372036854775807_usize.to_i64_res(), Ok(9223372036854775807_i64));
fn to_i64(self) -> i64
[src]
Parse usize
to
i64
(see more: usize_to_i64
)
Examples
use rustils::parse::long::ToI64; assert_eq!(0_usize.to_i64(), 0_i64); assert_eq!(9223372036854775807_usize.to_i64(), 9223372036854775807_i64);