Struct sway_error::warning::CompileWarning
source · pub struct CompileWarning {
pub span: Span,
pub warning_content: Warning,
}
Fields§
§span: Span
§warning_content: Warning
Implementations§
Trait Implementations§
source§impl Clone for CompileWarning
impl Clone for CompileWarning
source§fn clone(&self) -> CompileWarning
fn clone(&self) -> CompileWarning
Returns a copy 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 moresource§impl Debug for CompileWarning
impl Debug for CompileWarning
source§impl Hash for CompileWarning
impl Hash for CompileWarning
source§impl PartialEq<CompileWarning> for CompileWarning
impl PartialEq<CompileWarning> for CompileWarning
source§fn eq(&self, other: &CompileWarning) -> bool
fn eq(&self, other: &CompileWarning) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompileWarning
impl StructuralEq for CompileWarning
impl StructuralPartialEq for CompileWarning
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more