pub struct TokensForOperand<ID> {
pub tokens: SmallVec<[Token<ID>; 3]>,
}
Expand description
All the Token
s outputted by printing one single (“logical”) SPIR-V operand,
which may be concatenated (after separately processing ID
s) to obtain a
complete plain-text version of the printed operand.
Fields§
§tokens: SmallVec<[Token<ID>; 3]>
Implementations§
Source§impl TokensForOperand<String>
impl TokensForOperand<String>
pub fn concat_to_plain_text(self) -> String
Trait Implementations§
Auto Trait Implementations§
impl<ID> Freeze for TokensForOperand<ID>where
ID: Freeze,
impl<ID> RefUnwindSafe for TokensForOperand<ID>where
ID: RefUnwindSafe,
impl<ID> Send for TokensForOperand<ID>where
ID: Send,
impl<ID> Sync for TokensForOperand<ID>where
ID: Sync,
impl<ID> Unpin for TokensForOperand<ID>where
ID: Unpin,
impl<ID> UnwindSafe for TokensForOperand<ID>where
ID: RefUnwindSafe + 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 more