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 Defaultness
pub 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 Defaultness
impl Clone for Defaultness
[src]
impl Clone for Defaultness
fn clone(&self) -> Defaultness
[src]
fn clone(&self) -> Defaultness
Returns 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 Defaultness
fn eq(&self, other: &Defaultness) -> bool
[src]
fn eq(&self, other: &Defaultness) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Defaultness
[src]
impl Eq for Defaultness
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Encodable for Defaultness
[src]
impl Encodable for Defaultness
fn 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 Defaultness
fn 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 Defaultness
fn 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 Defaultness
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> HashStable<StableHashingContext<'a>> for Defaultness
[src]
impl<'a> HashStable<StableHashingContext<'a>> for Defaultness
fn 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 Defaultness
impl Sync for Defaultness
impl Sync for Defaultness