Type Alias DisallowedPathWithoutReplacement

Source
pub type DisallowedPathWithoutReplacement = DisallowedPath<false>;

Aliased Type§

struct DisallowedPathWithoutReplacement {
    path: String,
    reason: Option<String>,
    replacement: Option<String>,
}

Fields§

§path: String§reason: Option<String>§replacement: Option<String>

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: 72 bytes

Implementations

Source§

impl<const REPLACEMENT_ALLOWED: bool> DisallowedPath<REPLACEMENT_ALLOWED>

Source

pub fn path(&self) -> &str

Source

pub fn diag_amendment( &self, span: Span, ) -> impl FnOnce(&mut Diag<'_, ()>) + use<'_, REPLACEMENT_ALLOWED>

Trait Implementations

Source§

impl<const REPLACEMENT_ALLOWED: bool> Debug for DisallowedPath<REPLACEMENT_ALLOWED>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, const REPLACEMENT_ALLOWED: bool> Deserialize<'de> for DisallowedPath<REPLACEMENT_ALLOWED>

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<const REPLACEMENT_ALLOWED: bool> Serialize for DisallowedPath<REPLACEMENT_ALLOWED>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more