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: InputSource
Input source
file_type: FileType
File type of given input
content: String
Raw UTF-8 string content
Implementations
sourceimpl 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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more