pub struct IgnoreWarnings;Expand description
Warnings will be dropped.
See also: WarningHandling
Trait Implementations§
Source§impl Clone for IgnoreWarnings
impl Clone for IgnoreWarnings
Source§fn clone(&self) -> IgnoreWarnings
fn clone(&self) -> IgnoreWarnings
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 Debug for IgnoreWarnings
impl Debug for IgnoreWarnings
Source§impl Default for IgnoreWarnings
impl Default for IgnoreWarnings
Source§fn default() -> IgnoreWarnings
fn default() -> IgnoreWarnings
Returns the “default value” for a type. Read more
Source§impl WarningHandling for IgnoreWarnings
impl WarningHandling for IgnoreWarnings
Source§fn ok<T>(val: T) -> WarningResult<T, Self>
fn ok<T>(val: T) -> WarningResult<T, Self>
Creates a successful result containing the given value and no warnings.
Source§fn set_result<T>(result: &mut WarningResult<T, Self>, value: T)
fn set_result<T>(result: &mut WarningResult<T, Self>, value: T)
Updates the successful result, preserving errors and warnings.
Source§fn add_warning<T>(_result: &mut WarningResult<T, Self>, _warning: Warning)
fn add_warning<T>(_result: &mut WarningResult<T, Self>, _warning: Warning)
Adds a new warning to the result.
Source§fn merge<T, U, V>(
a: WarningResult<T, Self>,
b: WarningResult<U, Self>,
f: impl FnOnce(T, U) -> V,
) -> WarningResult<V, Self>
fn merge<T, U, V>( a: WarningResult<T, Self>, b: WarningResult<U, Self>, f: impl FnOnce(T, U) -> V, ) -> WarningResult<V, Self>
Applies a function to the successful values of two results, merging warnings and errors.
Auto Trait Implementations§
impl Freeze for IgnoreWarnings
impl RefUnwindSafe for IgnoreWarnings
impl Send for IgnoreWarnings
impl Sync for IgnoreWarnings
impl Unpin for IgnoreWarnings
impl UnsafeUnpin for IgnoreWarnings
impl UnwindSafe for IgnoreWarnings
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