pub enum Warning {
Deprecated {
name: String,
index: Option<usize>,
message: String,
links: Vec<String>,
span: Span,
},
}Expand description
Creates a compile-time warning for proc macro use. See DeprecatedWarningBuilder for usage.
Variants§
Deprecated
A deprecation warning that notifies users of outdated types and functions.
Implementations§
Source§impl Warning
impl Warning
Sourcepub fn new_deprecated<S: Into<String>>(title: S) -> DeprecatedWarningBuilder
pub fn new_deprecated<S: Into<String>>(title: S) -> DeprecatedWarningBuilder
Create a new deprecated warning.
Trait Implementations§
Source§impl From<Warning> for FormattedWarning
impl From<Warning> for FormattedWarning
Source§impl ToTokens for Warning
impl ToTokens for Warning
Source§fn to_tokens(&self, stream: &mut TokenStream)
fn to_tokens(&self, stream: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl !Send for Warning
impl !Sync for Warning
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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