pub enum InlineOptions {
Neutral,
Never,
Always,
}Expand description
The inline options for an error type.
Variants§
Neutral
Neutral inline behavior.
This will mark all implemented methods as #[inline], which will hint
the compiler to inline them if it deems it beneficial.
This is the default behavior.
Never
Never attempt to inline implemented methods for this error type.
Always
Always attempt to inline implemented methods for this error type.
Trait Implementations§
Source§impl Clone for InlineOptions
impl Clone for InlineOptions
Source§fn clone(&self) -> InlineOptions
fn clone(&self) -> InlineOptions
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 moreimpl Copy for InlineOptions
Source§impl Debug for InlineOptions
impl Debug for InlineOptions
Source§impl Default for InlineOptions
impl Default for InlineOptions
Source§fn default() -> InlineOptions
fn default() -> InlineOptions
Returns the “default value” for a type. Read more
impl Eq for InlineOptions
Source§impl Hash for InlineOptions
impl Hash for InlineOptions
Source§impl Parse for InlineOptions
impl Parse for InlineOptions
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for InlineOptions
impl PartialEq for InlineOptions
Source§fn eq(&self, other: &InlineOptions) -> bool
fn eq(&self, other: &InlineOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InlineOptions
Auto Trait Implementations§
impl Freeze for InlineOptions
impl RefUnwindSafe for InlineOptions
impl Send for InlineOptions
impl Sync for InlineOptions
impl Unpin for InlineOptions
impl UnsafeUnpin for InlineOptions
impl UnwindSafe for InlineOptions
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