Struct lychee_lib::InputContent
source · pub struct InputContent {
pub source: InputSource,
pub file_type: FileType,
pub content: String,
}Expand description
Encapsulates the content for a given input
Fields§
§source: InputSourceInput source
file_type: FileTypeFile type of given input
content: StringRaw UTF-8 string content
Implementations§
source§impl InputContent
impl InputContent
sourcepub fn from_string(s: &str, file_type: FileType) -> Self
pub fn from_string(s: &str, file_type: FileType) -> Self
Create an instance of InputContent from an input string
Trait Implementations§
source§impl Debug for InputContent
impl Debug for InputContent
Auto Trait Implementations§
impl RefUnwindSafe for InputContent
impl Send for InputContent
impl Sync for InputContent
impl Unpin for InputContent
impl UnwindSafe for InputContent
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