pub struct WithSource<'s, T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'s, T> AsRef<T> for WithSource<'s, T>
impl<'s, T> AsRef<T> for WithSource<'s, T>
Source§impl<'s, T> Deref for WithSource<'s, T>
impl<'s, T> Deref for WithSource<'s, T>
Source§impl Display for WithSource<'_, &AssignmentStatement>
impl Display for WithSource<'_, &AssignmentStatement>
Source§impl Display for WithSource<'_, &Attribute>
impl Display for WithSource<'_, &Attribute>
Source§impl Display for WithSource<'_, &BinaryExpression>
impl Display for WithSource<'_, &BinaryExpression>
Source§impl Display for WithSource<'_, &CaseSelector>
impl Display for WithSource<'_, &CaseSelector>
Source§impl Display for WithSource<'_, &CompoundStatement>
impl Display for WithSource<'_, &CompoundStatement>
Source§impl Display for WithSource<'_, &ConstAssert>
impl Display for WithSource<'_, &ConstAssert>
Source§impl Display for WithSource<'_, &ContinuingStatement>
impl Display for WithSource<'_, &ContinuingStatement>
Source§impl Display for WithSource<'_, &Declaration>
impl Display for WithSource<'_, &Declaration>
Source§impl Display for WithSource<'_, &DiagnosticDirective>
impl Display for WithSource<'_, &DiagnosticDirective>
Source§impl Display for WithSource<'_, &EnableDirective>
impl Display for WithSource<'_, &EnableDirective>
Source§impl Display for WithSource<'_, &Expression>
impl Display for WithSource<'_, &Expression>
Source§impl Display for WithSource<'_, &ForStatement>
impl Display for WithSource<'_, &ForStatement>
Source§impl Display for WithSource<'_, &FormalParameter>
impl Display for WithSource<'_, &FormalParameter>
Source§impl Display for WithSource<'_, &Function>
impl Display for WithSource<'_, &Function>
Source§impl Display for WithSource<'_, &FunctionCallExpression>
impl Display for WithSource<'_, &FunctionCallExpression>
Source§impl Display for WithSource<'_, &GlobalDeclaration>
impl Display for WithSource<'_, &GlobalDeclaration>
Source§impl Display for WithSource<'_, &GlobalDirective>
impl Display for WithSource<'_, &GlobalDirective>
Source§impl Display for WithSource<'_, &IfStatement>
impl Display for WithSource<'_, &IfStatement>
Source§impl Display for WithSource<'_, &IndexingExpression>
impl Display for WithSource<'_, &IndexingExpression>
Source§impl Display for WithSource<'_, &LoopStatement>
impl Display for WithSource<'_, &LoopStatement>
Source§impl Display for WithSource<'_, &NamedComponentExpression>
impl Display for WithSource<'_, &NamedComponentExpression>
Source§impl Display for WithSource<'_, &IdentifierExpression>
impl Display for WithSource<'_, &IdentifierExpression>
Source§impl Display for WithSource<'_, &RequiresDirective>
impl Display for WithSource<'_, &RequiresDirective>
Source§impl Display for WithSource<'_, &Statement>
impl Display for WithSource<'_, &Statement>
Source§impl Display for WithSource<'_, &Struct>
impl Display for WithSource<'_, &Struct>
Source§impl Display for WithSource<'_, &StructMember>
impl Display for WithSource<'_, &StructMember>
Source§impl Display for WithSource<'_, &SwitchClause>
impl Display for WithSource<'_, &SwitchClause>
Source§impl Display for WithSource<'_, &SwitchStatement>
impl Display for WithSource<'_, &SwitchStatement>
Source§impl Display for WithSource<'_, &TranslationUnit>
impl Display for WithSource<'_, &TranslationUnit>
Source§impl Display for WithSource<'_, &TypeAlias>
impl Display for WithSource<'_, &TypeAlias>
Source§impl Display for WithSource<'_, &TypeExpression>
impl Display for WithSource<'_, &TypeExpression>
Source§impl Display for WithSource<'_, &UnaryExpression>
impl Display for WithSource<'_, &UnaryExpression>
Auto Trait Implementations§
impl<'s, T> Freeze for WithSource<'s, T>where
T: Freeze,
impl<'s, T> RefUnwindSafe for WithSource<'s, T>where
T: RefUnwindSafe,
impl<'s, T> Send for WithSource<'s, T>where
T: Send,
impl<'s, T> Sync for WithSource<'s, T>where
T: Sync,
impl<'s, T> Unpin for WithSource<'s, T>where
T: Unpin,
impl<'s, T> UnwindSafe for WithSource<'s, T>where
T: UnwindSafe,
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 moreSource§impl<T> Source for T
impl<T> Source for T
Source§type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a>
where
T: 'a
type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a> where T: 'a
A type this
Source can be sliced into.Source§fn read<'a, Chunk>(&'a self, offset: usize) -> Option<Chunk>where
Chunk: Chunk<'a>,
fn read<'a, Chunk>(&'a self, offset: usize) -> Option<Chunk>where
Chunk: Chunk<'a>,
Read a chunk of bytes into an array. Returns
None when reading
out of bounds would occur. Read moreSource§unsafe fn read_byte_unchecked(&self, offset: usize) -> u8
unsafe fn read_byte_unchecked(&self, offset: usize) -> u8
Read a byte without doing bounds checks. Read more
Source§fn slice(&self, range: Range<usize>) -> Option<<T as Source>::Slice<'_>>
fn slice(&self, range: Range<usize>) -> Option<<T as Source>::Slice<'_>>
Get a slice of the source at given range. This is analogous to
slice::get(range). Read moreSource§unsafe fn slice_unchecked(
&self,
range: Range<usize>,
) -> <T as Source>::Slice<'_>
unsafe fn slice_unchecked( &self, range: Range<usize>, ) -> <T as Source>::Slice<'_>
Get a slice of the source at given range. This is analogous to
slice::get_unchecked(range). Read more