Enum brane_ast::warnings::AttributesWarning
source · pub enum AttributesWarning {
UnmatchedAttribute {
range: TextRange,
},
}
Expand description
Defines warnings that may occur during attribute processing.
Variants§
Implementations§
source§impl AttributesWarning
impl AttributesWarning
sourcepub fn prettywrite(
&self,
writer: impl Write,
file: impl AsRef<str>,
source: impl AsRef<str>,
) -> Result<(), Error>
pub fn prettywrite( &self, writer: impl Write, file: impl AsRef<str>, source: impl AsRef<str>, ) -> Result<(), Error>
Prints the warning in a pretty way to the given Write
r.
§Arguments:
writer
: TheWrite
-enabled object to write to.file
: The ‘path’ of the file (or some other identifier) where the source text originates from.source
: The source text to read the debug range from.
§Errors
This function may error if we failed to write to the given writer.
Trait Implementations§
source§impl Debug for AttributesWarning
impl Debug for AttributesWarning
source§impl Display for AttributesWarning
impl Display for AttributesWarning
source§impl From<AttributesWarning> for AstWarning
impl From<AttributesWarning> for AstWarning
source§fn from(warn: AttributesWarning) -> Self
fn from(warn: AttributesWarning) -> Self
Converts to this type from the input type.
impl Warning for AttributesWarning
Auto Trait Implementations§
impl Freeze for AttributesWarning
impl RefUnwindSafe for AttributesWarning
impl Send for AttributesWarning
impl Sync for AttributesWarning
impl Unpin for AttributesWarning
impl UnwindSafe for AttributesWarning
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request