pub enum StaticLevel {
NotStatic,
CanSkipPatch,
CanHoist,
CanStringify,
}
Expand description
Static level describes how much an IR node can be statically generated. Higher levels implies lower levels. e.g. a node that can be stringified can always be hoisted and skipped for patch.
Variants§
Trait Implementations§
Source§impl Clone for StaticLevel
impl Clone for StaticLevel
Source§fn clone(&self) -> StaticLevel
fn clone(&self) -> StaticLevel
Returns a duplicate 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 moreSource§impl Ord for StaticLevel
impl Ord for StaticLevel
Source§fn cmp(&self, other: &StaticLevel) -> Ordering
fn cmp(&self, other: &StaticLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StaticLevel
impl PartialEq for StaticLevel
Source§impl PartialOrd for StaticLevel
impl PartialOrd for StaticLevel
Source§impl Serialize for StaticLevel
impl Serialize for StaticLevel
impl Copy for StaticLevel
impl Eq for StaticLevel
impl StructuralPartialEq for StaticLevel
Auto Trait Implementations§
impl Freeze for StaticLevel
impl RefUnwindSafe for StaticLevel
impl Send for StaticLevel
impl Sync for StaticLevel
impl Unpin for StaticLevel
impl UnwindSafe for StaticLevel
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