pub enum SharingLevel {
None,
Internal,
Max,
}Expand description
The node-sharing level for DisplayAsGraph.
Variants§
None
No sharing: every use of a node is visited separately (may be exponentially large).
Internal
Internal sharing: nodes shared within the expression are visited once.
Max
Maximum sharing: maximize sharing across the entire expression.
Trait Implementations§
Source§impl Clone for SharingLevel
impl Clone for SharingLevel
Source§fn clone(&self) -> SharingLevel
fn clone(&self) -> SharingLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SharingLevel
impl Debug for SharingLevel
Source§impl PartialEq for SharingLevel
impl PartialEq for SharingLevel
Source§fn eq(&self, other: &SharingLevel) -> bool
fn eq(&self, other: &SharingLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SharingLevel
impl Eq for SharingLevel
impl StructuralPartialEq for SharingLevel
Auto Trait Implementations§
impl Freeze for SharingLevel
impl RefUnwindSafe for SharingLevel
impl Send for SharingLevel
impl Sync for SharingLevel
impl Unpin for SharingLevel
impl UnsafeUnpin for SharingLevel
impl UnwindSafe for SharingLevel
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