pub struct RubyDiagSink {
pub diags: Vec<(RubyDiagLevel, String)>,
}Fields§
§diags: Vec<(RubyDiagLevel, String)>Implementations§
Source§impl RubyDiagSink
impl RubyDiagSink
pub fn new() -> Self
pub fn push(&mut self, level: RubyDiagLevel, msg: &str)
pub fn has_errors(&self) -> bool
Trait Implementations§
Source§impl Debug for RubyDiagSink
impl Debug for RubyDiagSink
Source§impl Default for RubyDiagSink
impl Default for RubyDiagSink
Source§fn default() -> RubyDiagSink
fn default() -> RubyDiagSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RubyDiagSink
impl RefUnwindSafe for RubyDiagSink
impl Send for RubyDiagSink
impl Sync for RubyDiagSink
impl Unpin for RubyDiagSink
impl UnsafeUnpin for RubyDiagSink
impl UnwindSafe for RubyDiagSink
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