pub struct OutputPatternMatchFailure {
pub output_line: Option<Line>,
/* private fields */
}Fields§
§output_line: Option<Line>Implementations§
Source§impl OutputPatternMatchFailure
impl OutputPatternMatchFailure
pub fn new( location: &ScriptLocation, line: Option<Line>, pattern_type: &OutputPatternType, ) -> Self
pub fn new_reject(location: &ScriptLocation, line: Option<Line>) -> Self
Trait Implementations§
Source§impl Clone for OutputPatternMatchFailure
impl Clone for OutputPatternMatchFailure
Source§fn clone(&self) -> OutputPatternMatchFailure
fn clone(&self) -> OutputPatternMatchFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputPatternMatchFailure
impl Debug for OutputPatternMatchFailure
Source§impl Display for OutputPatternMatchFailure
impl Display for OutputPatternMatchFailure
Source§impl Error for OutputPatternMatchFailure
impl Error for OutputPatternMatchFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<OutputPatternMatchFailure> for ScriptRunError
impl From<OutputPatternMatchFailure> for ScriptRunError
Source§fn from(source: OutputPatternMatchFailure) -> Self
fn from(source: OutputPatternMatchFailure) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutputPatternMatchFailure
impl PartialEq for OutputPatternMatchFailure
Source§fn eq(&self, other: &OutputPatternMatchFailure) -> bool
fn eq(&self, other: &OutputPatternMatchFailure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OutputPatternMatchFailure
impl StructuralPartialEq for OutputPatternMatchFailure
Auto Trait Implementations§
impl Freeze for OutputPatternMatchFailure
impl RefUnwindSafe for OutputPatternMatchFailure
impl Send for OutputPatternMatchFailure
impl Sync for OutputPatternMatchFailure
impl Unpin for OutputPatternMatchFailure
impl UnsafeUnpin for OutputPatternMatchFailure
impl UnwindSafe for OutputPatternMatchFailure
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