Enum rustc_session::session::CodegenUnits
source · pub enum CodegenUnits {
User(usize),
Default(usize),
}
Variants§
User(usize)
Specified by the user. In this case we try fairly hard to produce the number of CGUs requested.
Default(usize)
A default value, i.e. not specified by the user. In this case we take more liberties about CGU formation, e.g. avoid producing very small CGUs.
Implementations§
Trait Implementations§
source§impl Clone for CodegenUnits
impl Clone for CodegenUnits
source§fn clone(&self) -> CodegenUnits
fn clone(&self) -> CodegenUnits
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for CodegenUnits
Auto Trait Implementations§
impl RefUnwindSafe for CodegenUnits
impl Send for CodegenUnits
impl Sync for CodegenUnits
impl Unpin for CodegenUnits
impl UnwindSafe for CodegenUnits
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 16 bytes
Size for each variant:
User
: 8 bytesDefault
: 8 bytes