Skip to main content

SignedInclRange

Type Alias SignedInclRange 

Source
pub type SignedInclRange = InclRange<isize>;

Aliased Type§

pub struct SignedInclRange { /* private fields */ }

Implementations§

Source§

impl SignedInclRange

Source

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

Source

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

Source

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

Source

pub fn to_unsigned(self, len: usize) -> Option<UnsignedInclRange>

Source

pub fn limit(self, len: usize) -> Option<Self>

Source

pub fn slice<T>(self, slice: &[T]) -> Option<&[T]>

Trait Implementations§

Source§

impl Display for SignedInclRange

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for SignedInclRange

Source§

type Err = String

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more