pub enum InternedValue {
String(Arc<String>),
Hex(Arc<String>),
Decimal(i64),
Empty,
}Expand description
Interned value wrapper for BPSV values
Variants§
String(Arc<String>)
Interned string value
Hex(Arc<String>)
Interned hex value
Decimal(i64)
Decimal value (not interned as numbers are small)
Empty
Empty value
Implementations§
Source§impl InternedValue
impl InternedValue
Sourcepub fn from_bpsv_value(value: BpsvValue, interner: &StringInterner) -> Self
pub fn from_bpsv_value(value: BpsvValue, interner: &StringInterner) -> Self
Convert from a regular BpsvValue using an interner
Trait Implementations§
Source§impl Clone for InternedValue
impl Clone for InternedValue
Source§fn clone(&self) -> InternedValue
fn clone(&self) -> InternedValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InternedValue
impl Debug for InternedValue
Source§impl PartialEq for InternedValue
impl PartialEq for InternedValue
Source§fn eq(&self, other: &InternedValue) -> bool
fn eq(&self, other: &InternedValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InternedValue
Auto Trait Implementations§
impl Freeze for InternedValue
impl RefUnwindSafe for InternedValue
impl Send for InternedValue
impl Sync for InternedValue
impl Unpin for InternedValue
impl UnsafeUnpin for InternedValue
impl UnwindSafe for InternedValue
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