Enum rustc::hir::Defaultness [−][src]
pub enum Defaultness {
Default {
has_value: bool,
},
Final,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Variants
Default🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields of Default
has_value: bool | 🔬 This is a nightly-only experimental API. ( |
Final🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl Defaultness[src]
impl Defaultnesspub fn has_value(&self) -> bool[src]
pub fn has_value(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn is_final(&self) -> bool[src]
pub fn is_final(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn is_default(&self) -> bool[src]
pub fn is_default(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Copy for Defaultness[src]
impl Copy for Defaultnessimpl Clone for Defaultness[src]
impl Clone for Defaultnessfn clone(&self) -> Defaultness[src]
fn clone(&self) -> DefaultnessReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Defaultness[src]
impl PartialEq for Defaultnessfn eq(&self, other: &Defaultness) -> bool[src]
fn eq(&self, other: &Defaultness) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Defaultness) -> bool[src]
fn ne(&self, other: &Defaultness) -> boolThis method tests for !=.
impl Eq for Defaultness[src]
impl Eq for Defaultnessfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Encodable for Defaultness[src]
impl Encodable for Defaultnessfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for Defaultness[src]
impl Decodable for Defaultnessfn decode<__D: Decoder>(d: &mut __D) -> Result<Defaultness, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Defaultness, __D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Hash for Defaultness[src]
impl Hash for Defaultnessfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Defaultness[src]
impl Debug for Defaultnessfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> HashStable<StableHashingContext<'a>> for Defaultness[src]
impl<'a> HashStable<StableHashingContext<'a>> for Defaultnessfn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Auto Trait Implementations
impl Send for Defaultness
impl Send for Defaultnessimpl Sync for Defaultness
impl Sync for Defaultness