Struct calyx_utils::GPosIdx
source · pub struct GPosIdx(pub PosIdx);Expand description
A position index backed by a global PositionTable
Tuple Fields§
§0: PosIdxImplementations§
source§impl GPosIdx
impl GPosIdx
sourcepub fn into_option(self) -> Option<Self>
pub fn into_option(self) -> Option<Self>
Convert the position into an optional.
Returns None if the position is the unknown position.
sourcepub fn format<S: AsRef<str>>(&self, err_msg: S) -> String
pub fn format<S: AsRef<str>>(&self, err_msg: S) -> String
Format this position with a the error message err_msg
pub fn get_location(&self) -> (&str, usize, usize)
Trait Implementations§
source§impl PartialEq for GPosIdx
impl PartialEq for GPosIdx
impl Copy for GPosIdx
impl Eq for GPosIdx
impl StructuralPartialEq for GPosIdx
Auto Trait Implementations§
impl RefUnwindSafe for GPosIdx
impl Send for GPosIdx
impl Sync for GPosIdx
impl Unpin for GPosIdx
impl UnwindSafe for GPosIdx
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.