Struct litcheck_core::Input
source · pub struct Input(/* private fields */);
Implementations§
source§impl Input
impl Input
pub fn exists(&self) -> bool
pub fn is_file(&self) -> bool
pub fn is_directory(&self) -> bool
pub fn path(&self) -> &Path
pub fn filename(&self) -> FileName
pub fn into_arc_source(&self, strict: bool) -> Result<ArcSource>
pub fn into_source(&self, strict: bool) -> Result<Source<'static>>
pub fn get_file_types(&self, file_types: &[String]) -> Result<Vec<Input>, Error>
pub fn glob(&self, pattern: &str) -> Result<Vec<Input>, Error>
pub fn open(&self) -> Result<impl BufRead>
pub fn read_to_string(&self, strict: bool) -> Result<String>
Trait Implementations§
source§impl PartialEq for Input
impl PartialEq for Input
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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