pub struct PositionId(/* private fields */);Expand description
An identifier representing a location in the Calyx source code
Implementations§
Source§impl PositionId
impl PositionId
Trait Implementations§
Source§impl Clone for PositionId
impl Clone for PositionId
Source§fn clone(&self) -> PositionId
fn clone(&self) -> PositionId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PositionId
impl Debug for PositionId
Source§impl Display for PositionId
impl Display for PositionId
Source§impl From<u32> for PositionId
impl From<u32> for PositionId
Source§fn from(value: u32) -> PositionId
fn from(value: u32) -> PositionId
Converts to this type from the input type.
Source§impl Hash for PositionId
impl Hash for PositionId
Source§impl Ord for PositionId
impl Ord for PositionId
Source§fn cmp(&self, other: &PositionId) -> Ordering
fn cmp(&self, other: &PositionId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PositionId
impl PartialEq for PositionId
Source§impl PartialOrd for PositionId
impl PartialOrd for PositionId
Source§impl TryFrom<u64> for PositionId
impl TryFrom<u64> for PositionId
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u64,
) -> Result<PositionId, <PositionId as TryFrom<u64>>::Error>
fn try_from( value: u64, ) -> Result<PositionId, <PositionId as TryFrom<u64>>::Error>
Performs the conversion.
impl Copy for PositionId
impl Eq for PositionId
impl StructuralPartialEq for PositionId
Auto Trait Implementations§
impl Freeze for PositionId
impl RefUnwindSafe for PositionId
impl Send for PositionId
impl Sync for PositionId
impl Unpin for PositionId
impl UnwindSafe for PositionId
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<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.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