Struct cov::intern::Symbol
[−]
[src]
pub struct Symbol(_);
A handle to an interned string in an Interner
.
Symbol
is a wrapper of usize
, and can be cheaply copied and compared. Symbol
s are produced by calling
Interner::intern()
.
Trait Implementations
impl Copy for Symbol
[src]
impl Clone for Symbol
[src]
fn clone(&self) -> Symbol
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Symbol
[src]
fn eq(&self, __arg_0: &Symbol) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Symbol) -> bool
[src]
This method tests for !=
.
impl Eq for Symbol
[src]
impl PartialOrd for Symbol
[src]
fn partial_cmp(&self, __arg_0: &Symbol) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Symbol) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Symbol) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Symbol) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Symbol) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Symbol
[src]
fn cmp(&self, __arg_0: &Symbol) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for Symbol
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for Symbol
[src]
impl Debug for Symbol
[src]
impl ToPrimitive for Symbol
[src]
fn to_i64(&self) -> Option<i64>
[src]
Converts the value of self
to an i64
.
fn to_u64(&self) -> Option<u64>
[src]
Converts the value of self
to an u64
.
fn to_usize(&self) -> Option<usize>
[src]
Converts the value of self
to a usize
.
fn to_isize(&self) -> Option<isize>
[src]
Converts the value of self
to an isize
.
fn to_i8(&self) -> Option<i8>
[src]
Converts the value of self
to an i8
.
fn to_i16(&self) -> Option<i16>
[src]
Converts the value of self
to an i16
.
fn to_i32(&self) -> Option<i32>
[src]
Converts the value of self
to an i32
.
fn to_u8(&self) -> Option<u8>
[src]
Converts the value of self
to an u8
.
fn to_u16(&self) -> Option<u16>
[src]
Converts the value of self
to an u16
.
fn to_u32(&self) -> Option<u32>
[src]
Converts the value of self
to an u32
.
fn to_f32(&self) -> Option<f32>
[src]
Converts the value of self
to an f32
.
fn to_f64(&self) -> Option<f64>
[src]
Converts the value of self
to an f64
.
impl SerializeWithInterner for Symbol
[src]
fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
interner: &Interner
) -> Result<S::Ok, S::Error>
[src]
&self,
serializer: S,
interner: &Interner
) -> Result<S::Ok, S::Error>
Serializes this value with help from an [Interner
] that writes [Symbol
]s as strings. Read more
fn with_interner<'si>(
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
[src]
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
Adorns this object with a string interner. Read more