pub struct WarningBuf<W>(pub Vec<W>);Expand description
Warning handler that collects warnings into a Vec rather than
reporting them as they are raised.
Use it when warnings need to be inspected, filtered or reordered after the algorithm has finished.
Tuple Fields§
§0: Vec<W>Implementations§
Source§impl<W> WarningBuf<W>
impl<W> WarningBuf<W>
Sourcepub fn new() -> WarningBuf<W>
pub fn new() -> WarningBuf<W>
Creates a new WarningBuf.
Trait Implementations§
Source§impl<W> Default for WarningBuf<W>
impl<W> Default for WarningBuf<W>
Source§fn default() -> WarningBuf<W>
fn default() -> WarningBuf<W>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<W> Freeze for WarningBuf<W>
impl<W> RefUnwindSafe for WarningBuf<W>where
Vec<W>: RefUnwindSafe,
impl<W> Send for WarningBuf<W>
impl<W> Sync for WarningBuf<W>
impl<W> Unpin for WarningBuf<W>
impl<W> UnsafeUnpin for WarningBuf<W>where
Vec<W>: UnsafeUnpin,
impl<W> UnwindSafe for WarningBuf<W>where
Vec<W>: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.