[][src]Trait rustils::parse::ulong::ToU64

pub trait ToU64 {
    fn to_u64_res(self) -> ParseResultU64;
fn to_u64(self) -> u64; }

Required methods

fn to_u64_res(self) -> ParseResultU64

fn to_u64(self) -> u64

Loading content...

Implementations on Foreign Types

impl ToU64 for bool[src]

fn to_u64_res(self) -> ParseResultU64[src]

Parse bool to u64 (see more: bool_to_u64_res)

Examples

use rustils::parse::ulong::ToU64;

assert_eq!(true.to_u64_res(), Ok(1_u64));
assert_eq!(false.to_u64_res(), Ok(0_u64));

fn to_u64(self) -> u64[src]

Parse bool to u64 (see more: bool_to_u64)

Examples

use rustils::parse::ulong::ToU64;

assert_eq!(true.to_u64(), 1_u64);
assert_eq!(false.to_u64(), 0_u64);

impl ToU64 for i8[src]

impl ToU64 for i16[src]

impl ToU64 for i32[src]

impl ToU64 for f32[src]

impl ToU64 for i64[src]

impl ToU64 for f64[src]

impl ToU64 for isize[src]

impl ToU64 for String[src]

impl ToU64 for &'static str[src]

Loading content...

Implementors

Loading content...