Skip to main content

UnsignedInclRange

Type Alias UnsignedInclRange 

Source
pub type UnsignedInclRange = InclRange<usize>;

Aliased Type§

pub struct UnsignedInclRange { /* private fields */ }

Implementations§

Source§

impl UnsignedInclRange

Source

pub fn new(start: usize, end: usize) -> Option<Self>

Source

pub fn set_start(self, start: usize) -> Option<Self>

Source

pub fn set_end(self, end: usize) -> Option<Self>

Source

pub fn contains(&self, idx: usize) -> bool

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn to_signed( self, start_rel: Relativity, end_rel: Relativity, len: usize, ) -> Option<SignedInclRange>