pub enum Deprecated<Msg, Since = NoOp> {
Basic,
Message(Msg),
Full {
since: Since,
note: Msg,
},
}Expand description
The deprecated attribute. The three variants of this enum correspond to the deprecated attribute’s multiple ways of being specified. See: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-deprecated-attribute
Variants§
Implementations§
Source§impl<Msg> Deprecated<Msg>
impl<Msg> Deprecated<Msg>
pub fn with_message(msg: Msg) -> Self
Trait Implementations§
Source§impl<Msg: Clone, Since: Clone> Clone for Deprecated<Msg, Since>
impl<Msg: Clone, Since: Clone> Clone for Deprecated<Msg, Since>
Source§fn clone(&self) -> Deprecated<Msg, Since>
fn clone(&self) -> Deprecated<Msg, Since>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Msg, Since> Freeze for Deprecated<Msg, Since>
impl<Msg, Since> RefUnwindSafe for Deprecated<Msg, Since>where
Msg: RefUnwindSafe,
Since: RefUnwindSafe,
impl<Msg, Since> Send for Deprecated<Msg, Since>
impl<Msg, Since> Sync for Deprecated<Msg, Since>
impl<Msg, Since> Unpin for Deprecated<Msg, Since>
impl<Msg, Since> UnwindSafe for Deprecated<Msg, Since>where
Msg: UnwindSafe,
Since: 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