Trait As
Other items inarbintrary
pub trait As<Value> { type Output; fn as_(value: Value) -> Self::Output; }
type Output
fn as_(value: Value) -> Self::Output
Performs lossy conversion.
use arbintrary::*; assert_eq!(uint::<4>::as_(uint::<12>::new(0xFFF)), uint::<4>::new(0xF));