Enum brane_ast::warnings::CompileWarning
source · pub enum CompileWarning {
OnDeprecated {
range: TextRange,
},
}
Expand description
Defines warnings that may occur during compilation.
Variants§
Implementations§
source§impl CompileWarning
impl CompileWarning
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 CompileWarning
impl Debug for CompileWarning
source§impl Display for CompileWarning
impl Display for CompileWarning
source§impl From<CompileWarning> for AstWarning
impl From<CompileWarning> for AstWarning
source§fn from(warn: CompileWarning) -> Self
fn from(warn: CompileWarning) -> Self
Converts to this type from the input type.
impl Warning for CompileWarning
Auto Trait Implementations§
impl Freeze for CompileWarning
impl RefUnwindSafe for CompileWarning
impl Send for CompileWarning
impl Sync for CompileWarning
impl Unpin for CompileWarning
impl UnwindSafe for CompileWarning
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