Trait arbintrary::As[][src]

pub trait As<Value> {
    type Output;
    fn as_(value: Value) -> Self::Output;
}

Associated Types

Required methods

Performs lossy conversion.

Example

use arbintrary::*;
assert_eq!(uint::<4>::as_(uint::<12>::new(0xFFF)), uint::<4>::new(0xF));

Implementors