pub enum ChrRef<'a> {
Assigned(usize),
Unassigned(&'a str),
Dummy,
}
Variants§
Implementations§
Source§impl<'a> ChrRef<'a>
impl<'a> ChrRef<'a>
pub fn to_static(&self) -> ChrRef<'static>
pub fn get_chr_name(&self) -> &'a str
pub fn id(&self) -> Option<usize>
pub fn get_id_or_update(&self) -> usize
pub fn get_chr_size(&self) -> Option<usize>
pub fn verify_size(&self, size: usize) -> bool
pub fn verify_size_or_update(&self, size: usize) -> bool
Trait Implementations§
Source§impl<'a> Ord for ChrRef<'a>
impl<'a> Ord for ChrRef<'a>
Source§impl<'a> PartialOrd for ChrRef<'a>
impl<'a> PartialOrd for ChrRef<'a>
impl<'a> Copy for ChrRef<'a>
impl<'a> Eq for ChrRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChrRef<'a>
impl<'a> RefUnwindSafe for ChrRef<'a>
impl<'a> Send for ChrRef<'a>
impl<'a> Sync for ChrRef<'a>
impl<'a> Unpin for ChrRef<'a>
impl<'a> UnwindSafe for ChrRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more