pub struct DisplaySyntax {
pub message: String,
pub span: Span,
}
Fields§
§message: String
§span: Span
Implementations§
Source§impl DisplaySyntax
impl DisplaySyntax
pub fn new<T: ToString>(message: T, span: Span) -> Self
pub fn helper_create_lines<T: ToString>(payload: &T) -> Vec<Line>
pub fn debug_payload<T: ToString>(&self, payload: &T) -> String
pub fn debug_payload_configurable<T: ToString>( &self, payload: &T, options: &DisplaySyntaxDebugOptions, ) -> String
Trait Implementations§
Source§impl Clone for DisplaySyntax
impl Clone for DisplaySyntax
Source§fn clone(&self) -> DisplaySyntax
fn clone(&self) -> DisplaySyntax
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DisplaySyntax
impl RefUnwindSafe for DisplaySyntax
impl Send for DisplaySyntax
impl Sync for DisplaySyntax
impl Unpin for DisplaySyntax
impl UnwindSafe for DisplaySyntax
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