pub enum DocCodeHeuristics {
Inherit,
Off,
Max,
Default,
}Variants§
Inherit
Inherit from the top-level configuration
Off
Turn off any heuristics
Max
Turn on max heuristics
Default
Use scaled values based on the value of max_width
Implementations§
Source§impl DocCodeHeuristics
impl DocCodeHeuristics
pub fn to_heuristics(self) -> Option<Heuristics>
Trait Implementations§
Source§impl Clone for DocCodeHeuristics
impl Clone for DocCodeHeuristics
Source§fn clone(&self) -> DocCodeHeuristics
fn clone(&self) -> DocCodeHeuristics
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 ConfigType for DocCodeHeuristics
impl ConfigType for DocCodeHeuristics
impl Copy for DocCodeHeuristics
Source§impl Debug for DocCodeHeuristics
impl Debug for DocCodeHeuristics
Source§impl<'de> Deserialize<'de> for DocCodeHeuristics
impl<'de> Deserialize<'de> for DocCodeHeuristics
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DocCodeHeuristics
impl Display for DocCodeHeuristics
impl Eq for DocCodeHeuristics
Source§impl FromStr for DocCodeHeuristics
impl FromStr for DocCodeHeuristics
Source§impl PartialEq for DocCodeHeuristics
impl PartialEq for DocCodeHeuristics
Source§impl Serialize for DocCodeHeuristics
impl Serialize for DocCodeHeuristics
impl StructuralPartialEq for DocCodeHeuristics
Auto Trait Implementations§
impl DynSend for DocCodeHeuristics
impl DynSync for DocCodeHeuristics
impl Freeze for DocCodeHeuristics
impl RefUnwindSafe for DocCodeHeuristics
impl Send for DocCodeHeuristics
impl Sync for DocCodeHeuristics
impl Unpin for DocCodeHeuristics
impl UnsafeUnpin for DocCodeHeuristics
impl UnwindSafe for DocCodeHeuristics
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Inherit: 0 bytesOff: 0 bytesMax: 0 bytesDefault: 0 bytes