Enum grass_runtime::ChrRef
source · [−]Variants
Assigned(usize)
Unassigned(&'a str)
Dummy
Implementations
sourceimpl<'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
sourceimpl<'a> Ord for ChrRef<'a>
impl<'a> Ord for ChrRef<'a>
sourceimpl<'a> PartialOrd<ChrRef<'a>> for ChrRef<'a>
impl<'a> PartialOrd<ChrRef<'a>> for ChrRef<'a>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<'a> Copy for ChrRef<'a>
impl<'a> Eq for ChrRef<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more