#[repr(transparent)]pub struct StringId(pub u32);Expand description
A string pool identifier. Indexes into BytecodeProgram::strings.
Using StringId instead of a heap-allocated String makes
Operand (and therefore Instruction) Copy.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StringId
impl<'de> Deserialize<'de> for StringId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for StringId
impl Ord for StringId
Source§impl PartialOrd for StringId
impl PartialOrd for StringId
impl Copy for StringId
impl Eq for StringId
impl StructuralPartialEq for StringId
Auto Trait Implementations§
impl Freeze for StringId
impl RefUnwindSafe for StringId
impl Send for StringId
impl Sync for StringId
impl Unpin for StringId
impl UnsafeUnpin for StringId
impl UnwindSafe for StringId
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