Struct rustc::ty::ReprOptions
[−]
[src]
pub struct ReprOptions { pub c: bool, pub packed: bool, pub simd: bool, pub int: Option<IntType>, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Represents the repr options provided by the user,
Fields
c: bool
🔬 This is a nightly-only experimental API. (
rustc_private
)packed: bool
🔬 This is a nightly-only experimental API. (
rustc_private
)simd: bool
🔬 This is a nightly-only experimental API. (
rustc_private
)int: Option<IntType>
🔬 This is a nightly-only experimental API. (
rustc_private
)Methods
impl ReprOptions
[src]
fn new(tcx: TyCtxt, did: DefId) -> ReprOptions
🔬 This is a nightly-only experimental API. (
rustc_private
)fn discr_type(&self) -> IntType
🔬 This is a nightly-only experimental API. (
rustc_private
)fn inhibit_enum_layout_opt(&self) -> bool
🔬 This is a nightly-only experimental API. (
rustc_private
)Returns true if this #[repr()]
should inhabit "smart enum
layout" optimizations, such as representing Foo<&T>
as a
single pointer.
Trait Implementations
impl Copy for ReprOptions
[src]
impl Clone for ReprOptions
[src]
fn clone(&self) -> ReprOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for ReprOptions
[src]
impl PartialEq for ReprOptions
[src]
fn eq(&self, __arg_0: &ReprOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ReprOptions) -> bool
This method tests for !=
.
impl Encodable for ReprOptions
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for ReprOptions
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ReprOptions, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Default for ReprOptions
[src]
fn default() -> ReprOptions
Returns the "default value" for a type. Read more