pub enum InlineThreshold {
Never,
Always,
MaxLength(usize),
}Variants§
Never
Never inline
Always
Always inline
MaxLength(usize)
Maximum length of a single line before it is considered too long to be inline.
Implementations§
Source§impl InlineThreshold
impl InlineThreshold
pub fn should_inline(&self, len: usize) -> bool
Trait Implementations§
Source§impl Clone for InlineThreshold
impl Clone for InlineThreshold
Source§fn clone(&self) -> InlineThreshold
fn clone(&self) -> InlineThreshold
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 Debug for InlineThreshold
impl Debug for InlineThreshold
Source§impl PartialEq for InlineThreshold
impl PartialEq for InlineThreshold
impl Copy for InlineThreshold
impl Eq for InlineThreshold
impl StructuralPartialEq for InlineThreshold
Auto Trait Implementations§
impl Freeze for InlineThreshold
impl RefUnwindSafe for InlineThreshold
impl Send for InlineThreshold
impl Sync for InlineThreshold
impl Unpin for InlineThreshold
impl UnwindSafe for InlineThreshold
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