Struct rustdoc_types::Discriminant
source · Fields§
§expr: String
The expression that produced the discriminant.
Unlike value
, this preserves the original formatting (eg suffixes,
hexadecimal, and underscores), making it unsuitable to be machine
interpreted.
In some cases, when the value is to complex, this may be "{ _ }"
.
When this occurs is unstable, and may change without notice.
value: String
The numerical value of the discriminant. Stored as a string due to
JSON’s poor support for large integers, and the fact that it would need
to store from i128::MIN
to u128::MAX
.
Trait Implementations§
source§impl Clone for Discriminant
impl Clone for Discriminant
source§fn clone(&self) -> Discriminant
fn clone(&self) -> Discriminant
Returns a copy of the value. Read more
1.0.0 · 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 Discriminant
impl Debug for Discriminant
source§impl<'de> Deserialize<'de> for Discriminant
impl<'de> Deserialize<'de> for Discriminant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for Discriminant
impl Hash for Discriminant
source§impl PartialEq<Discriminant> for Discriminant
impl PartialEq<Discriminant> for Discriminant
source§fn eq(&self, other: &Discriminant) -> bool
fn eq(&self, other: &Discriminant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.