Enum rustc_mir_build::build::expr::category::RvalueFunc
source · pub(crate) enum RvalueFunc {
Into,
AsRvalue,
}
Expand description
Rvalues fall into different “styles” that will determine which fn is best suited to generate them.
Variants§
Into
Best generated by into
. This is generally exprs that
cause branching, like match
, but also includes calls.
AsRvalue
Best generated by as_rvalue
. This is usually the case.
Trait Implementations§
source§impl Debug for RvalueFunc
impl Debug for RvalueFunc
source§impl PartialEq<RvalueFunc> for RvalueFunc
impl PartialEq<RvalueFunc> for RvalueFunc
source§fn eq(&self, other: &RvalueFunc) -> bool
fn eq(&self, other: &RvalueFunc) -> bool
impl StructuralPartialEq for RvalueFunc
Auto Trait Implementations§
impl RefUnwindSafe for RvalueFunc
impl Send for RvalueFunc
impl Sync for RvalueFunc
impl Unpin for RvalueFunc
impl UnwindSafe for RvalueFunc
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Into
: 0 bytesAsRvalue
: 0 bytes