pub struct SignId(pub u32);Expand description
A definition’s interned handle (SG.1).
Placements carry this, not a name, and the reason is the render path:
GutterDecoration is Copy and one placement exists per visible marked
line per refresh, so a String there would be both a clone per line and the
end of Copy for every consumer. The name→id resolution happens ONCE, where
a placement is produced — at the WASM boundary, off the render path.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for SignId
impl Eq for SignId
Source§impl Ord for SignId
impl Ord for SignId
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
Source§impl PartialOrd for SignId
impl PartialOrd for SignId
impl StructuralPartialEq for SignId
Auto Trait Implementations§
impl Freeze for SignId
impl RefUnwindSafe for SignId
impl Send for SignId
impl Sync for SignId
impl Unpin for SignId
impl UnsafeUnpin for SignId
impl UnwindSafe for SignId
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,
§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
Compare self to
key and return true if they are equal.