pub struct Variable(_);
Expand description

An opaque reference to a variable.

Implementations§

Create a new instance from a u32.

Examples found in repository?
src/variable.rs (line 24)
23
24
25
    pub fn with_u32(index: u32) -> Self {
        Variable::from_u32(index)
    }

Return the underlying index value as a u32.

Return the raw bit encoding for this instance.

Create a new instance from the raw bit encoding.

👎Deprecated: Use Variable::from_u32 instead

Create a new Variable with the given index.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Create a new entity reference from a small integer. This should crash if the requested index is not representable.
Get the index that was used to create this entity reference.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Create an instance of the reserved value.
Checks whether value is the reserved one.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Get the key of this sparse map value. This key is not allowed to change while the value is a member of the map.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.