Struct rustc_metadata::schema::VariantData [−][src]
pub struct VariantData<'tcx> { pub ctor_kind: CtorKind, pub discr: VariantDiscr, pub struct_ctor: Option<DefIndex>, pub ctor_sig: Option<Lazy<PolyFnSig<'tcx>>>, }
🔬 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
ctor_kind: CtorKind
🔬 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?
discr: VariantDiscr
🔬 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?
struct_ctor: Option<DefIndex>
🔬 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?
If this is a struct's only variant, this is the index of the "struct ctor" item.
ctor_sig: Option<Lazy<PolyFnSig<'tcx>>>
🔬 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?
If this is a tuple struct or variant ctor, this is its "function" signature.
Trait Implementations
impl<'tcx> Encodable for VariantData<'tcx>
[src]
impl<'tcx> Encodable for VariantData<'tcx>
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<'tcx> Decodable for VariantData<'tcx>
[src]
impl<'tcx> Decodable for VariantData<'tcx>
fn decode<__D: Decoder>(d: &mut __D) -> Result<VariantData<'tcx>, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<VariantData<'tcx>, __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<'a, 'tcx> HashStable<StableHashingContext<'a>> for VariantData<'tcx>
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for VariantData<'tcx>
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &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<'tcx> !Send for VariantData<'tcx>
impl<'tcx> !Send for VariantData<'tcx>
impl<'tcx> !Sync for VariantData<'tcx>
impl<'tcx> !Sync for VariantData<'tcx>