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. Symbols are produced by calling Interner::intern().

Trait Implementations

impl Copy for Symbol
[src]

impl Clone for Symbol
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Symbol
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Symbol
[src]

impl PartialOrd for Symbol
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Symbol
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for Symbol
[src]

Returns the "default value" for a type. Read more

impl Debug for Symbol
[src]

Formats the value using the given formatter. Read more

impl ToPrimitive for Symbol
[src]

Converts the value of self to an i64.

Converts the value of self to an u64.

Converts the value of self to a usize.

Converts the value of self to an isize.

Converts the value of self to an i8.

Converts the value of self to an i16.

Converts the value of self to an i32.

Converts the value of self to an i128. Read more

Converts the value of self to an u8.

Converts the value of self to an u16.

Converts the value of self to an u32.

Converts the value of self to an u128. Read more

Converts the value of self to an f32.

Converts the value of self to an f64.

impl From<Symbol> for usize
[src]

Performs the conversion.

impl Index<Symbol> for Interner
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl SerializeWithInterner for Symbol
[src]

Serializes this value with help from an [Interner] that writes [Symbol]s as strings. Read more

Adorns this object with a string interner. Read more

Auto Trait Implementations

impl Send for Symbol

impl Sync for Symbol