Struct glsl_lang_lexer::v2_full::fs::File
source · pub struct File<'r, 'p, F: FileSystem> {
inner: ParsedFile<'p, F>,
state: Option<ProcessorState>,
registry: Option<&'r Registry>,
}
Expand description
A preprocessor parsed file ready for lexing
Fields§
§inner: ParsedFile<'p, F>
§state: Option<ProcessorState>
§registry: Option<&'r Registry>
Implementations§
source§impl<'r, 'p, F: FileSystem> File<'r, 'p, F>
impl<'r, 'p, F: FileSystem> File<'r, 'p, F>
sourcepub fn with_state(self, state: impl Into<ProcessorState>) -> Self
pub fn with_state(self, state: impl Into<ProcessorState>) -> Self
Set the default processor state for processing this file
sourcepub fn with_registry(self, registry: impl Into<&'r Registry>) -> Self
pub fn with_registry(self, registry: impl Into<&'r Registry>) -> Self
Set the extension registry to use for this file
Auto Trait Implementations§
impl<'r, 'p, F> Freeze for File<'r, 'p, F>
impl<'r, 'p, F> !RefUnwindSafe for File<'r, 'p, F>
impl<'r, 'p, F> !Send for File<'r, 'p, F>
impl<'r, 'p, F> !Sync for File<'r, 'p, F>
impl<'r, 'p, F> Unpin for File<'r, 'p, F>
impl<'r, 'p, F> !UnwindSafe for File<'r, 'p, F>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more