Enum proc_macro_warning::Warning
source · 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(title: &str) -> DeprecatedWarningBuilder
pub fn new_deprecated(title: &str) -> 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 RefUnwindSafe for Warning
impl !Send for Warning
impl !Sync for Warning
impl Unpin 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