pub enum TestCaseInput {
InMemory(Arc<str>),
FromFile {
filepath: Arc<str>,
contents: Arc<str>,
},
}
Expand description
The input to a TestCase
Variants§
Trait Implementations§
Source§impl Clone for TestCaseInput
impl Clone for TestCaseInput
Source§fn clone(&self) -> TestCaseInput
fn clone(&self) -> TestCaseInput
Returns a duplicate 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 TestCaseInput
impl Debug for TestCaseInput
Source§impl From<&str> for TestCaseInput
impl From<&str> for TestCaseInput
Source§impl SourceCode for TestCaseInput
impl SourceCode for TestCaseInput
Source§fn read_span<'a>(
&'a self,
span: &SourceSpan,
context_lines_before: usize,
context_lines_after: usize,
) -> Result<Box<dyn SpanContents<'a> + 'a>, MietteError>
fn read_span<'a>( &'a self, span: &SourceSpan, context_lines_before: usize, context_lines_after: usize, ) -> Result<Box<dyn SpanContents<'a> + 'a>, MietteError>
Read the bytes for a specific span from this
SourceCode
, keeping a
certain number of lines before and after the span as context.Auto Trait Implementations§
impl Freeze for TestCaseInput
impl RefUnwindSafe for TestCaseInput
impl Send for TestCaseInput
impl Sync for TestCaseInput
impl Unpin for TestCaseInput
impl UnwindSafe for TestCaseInput
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