pub struct LinkId(/* private fields */);Expand description
Opaque link identifier returned by LinkTable::link.
Inner id is runtime-minted (pub(crate)), same rule as crate::CapId.
Values fit in i64 so bytecode can store them as crate::Value::Int.
0 is never minted. Bytecode writes 0 when finalize already consumed
the row, and Unlink of that sentinel does nothing.
Implementations§
Trait Implementations§
impl Copy for LinkId
impl Eq for LinkId
Source§impl Ord for LinkId
impl Ord for LinkId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LinkId
impl PartialOrd for LinkId
impl StructuralPartialEq for LinkId
Auto Trait Implementations§
impl Forget for LinkId
impl Freeze for LinkId
impl Move for LinkId
impl RefUnwindSafe for LinkId
impl Send for LinkId
impl Sync for LinkId
impl Unpin for LinkId
impl UnsafeUnpin for LinkId
impl UnwindSafe for LinkId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.