Enum netbuf::RangeArgument [] [src]

pub enum RangeArgument {
    RangeFrom(usize),
    Range(usize, usize),
    RangeTo(usize),
}

Temporary type until the one in stdlib it made stable

Variants

RangeFrom
Range
RangeTo

Trait Implementations

impl From<Range<usize>> for RangeArgument

fn from(r: Range<usize>) -> RangeArgument

impl From<RangeFrom<usize>> for RangeArgument

fn from(r: RangeFrom<usize>) -> RangeArgument

impl From<RangeTo<usize>> for RangeArgument

fn from(r: RangeTo<usize>) -> RangeArgument

impl From<RangeFull> for RangeArgument

fn from(_: RangeFull) -> RangeArgument