pub enum InliningDepth {
Unconstrained,
Shallow,
Adaptive,
}
Variants§
Unconstrained
Inline to arbitrary depth
Shallow
Perform no inlining
Adaptive
Inline so long as markers are reachable
Implementations§
Source§impl InliningDepth
impl InliningDepth
Sourcepub const fn is_unconstrained(&self) -> bool
pub const fn is_unconstrained(&self) -> bool
Returns true if the enum is InliningDepth::Unconstrained otherwise false
Sourcepub const fn is_shallow(&self) -> bool
pub const fn is_shallow(&self) -> bool
Returns true if the enum is InliningDepth::Shallow otherwise false
Sourcepub const fn is_adaptive(&self) -> bool
pub const fn is_adaptive(&self) -> bool
Returns true if the enum is InliningDepth::Adaptive otherwise false
Trait Implementations§
Source§impl AsRef<str> for InliningDepth
impl AsRef<str> for InliningDepth
Source§impl Clone for InliningDepth
impl Clone for InliningDepth
Source§fn clone(&self) -> InliningDepth
fn clone(&self) -> InliningDepth
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 moreSource§impl<'de> Deserialize<'de> for InliningDepth
impl<'de> Deserialize<'de> for InliningDepth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InliningDepth
impl RefUnwindSafe for InliningDepth
impl Send for InliningDepth
impl Sync for InliningDepth
impl Unpin for InliningDepth
impl UnwindSafe for InliningDepth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more