Skip to main content

MsgPathMap

Struct MsgPathMap 

Source
pub struct MsgPathMap<'set> {
    pub total_warnings: usize,
    pub total_elements: usize,
    pub elements_filtered: usize,
    pub warning_distinct_types_filtered: usize,
    pub warnings: BTreeMap<String, Vec<&'set str>>,
}
Expand description

The outcome of calling the Set::msg_path_map function.

Fields§

§total_warnings: usize

The total amount of Warnings Ids in the source Set.

§total_elements: usize

The total amount of element paths in the source Set.

§elements_filtered: usize

The amount of element paths filtered due to a Limit being set.

§warning_distinct_types_filtered: usize

The amount of Warning Ids filtered due to a Limit being set.

Note: This is not a count of how many warnings were filtered. It’s a count of how many types of warnings were filtered. If seven excessive_precision warnings are filtered, this counts as one type, as all the IDs that were filtered are the same.

§warnings: BTreeMap<String, Vec<&'set str>>

The map of all Warning Ids mapped to the element paths where they occurred.

Trait Implementations§

Source§

impl<'set> Debug for MsgPathMap<'set>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'set> Forget for MsgPathMap<'set>

§

impl<'set> Freeze for MsgPathMap<'set>
where *const LeafNode<String, Vec<&'set str>> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, Vec<&'set str>)>>: Freeze,

§

impl<'set> Move for MsgPathMap<'set>

§

impl<'set> RefUnwindSafe for MsgPathMap<'set>

§

impl<'set> Send for MsgPathMap<'set>
where NodeRef<Owned, String, Vec<&'set str>, LeafOrInternal>: Send, BoxRaw<(String, Vec<&'set str>)>: Send,

§

impl<'set> Sync for MsgPathMap<'set>
where NodeRef<Owned, String, Vec<&'set str>, LeafOrInternal>: Sync, BoxRaw<(String, Vec<&'set str>)>: Sync,

§

impl<'set> Unpin for MsgPathMap<'set>
where *const LeafNode<String, Vec<&'set str>> is !null: Unpin, Box<(String, Vec<&'set str>)>: Unpin,

§

impl<'set> UnsafeUnpin for MsgPathMap<'set>
where *const LeafNode<String, Vec<&'set str>> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, Vec<&'set str>)>>: UnsafeUnpin,

§

impl<'set> UnwindSafe for MsgPathMap<'set>
where BTreeMap<String, Vec<&'set str>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more