Struct spirt::spv::print::TokensForOperand
source · 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> 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: UnwindSafe + RefUnwindSafe,
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