pub struct Case {
pub name: &'static str,
pub expected_encoding: Option<Encoding>,
pub comment: Option<&'static str>,
pub files: Files,
pub error: Option<Error>,
}Fields§
§name: &'static str§expected_encoding: Option<Encoding>§comment: Option<&'static str>§files: Files§error: Option<Error>Implementations§
Source§impl Case
impl Case
pub fn absolute_path(&self) -> GuardedPath
pub fn bytes(&self) -> Vec<u8> ⓘ
pub fn new(name: &'static str) -> Self
pub fn encoding(self, enc: Encoding) -> Self
pub fn comment(self, comment: &'static str) -> Self
pub fn files<F: Into<Files>>(self, files: F) -> Self
pub fn error<E: Into<Error>>(self, error: E) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Case
impl !RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl !UnwindSafe for Case
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