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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Symbol
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Symbol
[src]

impl PartialOrd for Symbol
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Symbol
[src]

[src]

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

1.3.0
[src]

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

impl Default for Symbol
[src]

[src]

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

impl Debug for Symbol
[src]

[src]

Formats the value using the given formatter.

impl ToPrimitive for Symbol
[src]

[src]

Converts the value of self to an i64.

[src]

Converts the value of self to an u64.

[src]

Converts the value of self to a usize.

[src]

Converts the value of self to an isize.

[src]

Converts the value of self to an i8.

[src]

Converts the value of self to an i16.

[src]

Converts the value of self to an i32.

[src]

Converts the value of self to an u8.

[src]

Converts the value of self to an u16.

[src]

Converts the value of self to an u32.

[src]

Converts the value of self to an f32.

[src]

Converts the value of self to an f64.

impl SerializeWithInterner for Symbol
[src]

[src]

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

[src]

Adorns this object with a string interner. Read more