Struct hotg_rune_compiler::Diagnostics
source · [−]pub struct Diagnostics(_);
Expand description
A collection of Diagnostic
s.
Implementations
pub fn iter_severity(
&self,
severity: Severity
) -> impl Iterator<Item = &Diagnostic<()>> + '_
pub fn iter_severity(
&self,
severity: Severity
) -> impl Iterator<Item = &Diagnostic<()>> + '_
Get an iterator over all the Diagnostic
s that are at least as severe
as a certain Severity
.
Are there any diagnostics which are at least as severe as a certain
Severity
level?
Does this set of Diagnostics
contain any Diagnostic
s which are
at least as bad as an error?
Does this set of Diagnostics
contain any Diagnostic
s which are
at least as bad as a warning?
Add a new Diagnostic
to the collection.
Is this collection of Diagnostic
s empty?
Remove all Diagnostic
s from this set of Diagnostics
.
Trait Implementations
Returns the “default value” for a type. Read more
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
type IntoIter = <&'a Vec<Diagnostic<()>> as IntoIterator>::IntoIter
type IntoIter = <&'a Vec<Diagnostic<()>> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
type Item = &'a Diagnostic<()>
type Item = &'a Diagnostic<()>
The type of the elements being iterated over.
type IntoIter = <Vec<Diagnostic<()>> as IntoIterator>::IntoIter
type IntoIter = <Vec<Diagnostic<()>> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
type Item = Diagnostic<()>
type Item = Diagnostic<()>
The type of the elements being iterated over.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnwindSafe for Diagnostics
Blanket Implementations
Mutably borrows from an owned value. Read more
type Storage = PackedStorage<T>
type Storage = PackedStorage<T>
The storage type required to hold all instances of this component in a world.
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more