Enum spirt::spv::spec::LiteralSize
source · pub enum LiteralSize {
Word,
NulTerminated,
FromContextualType,
}
Variants§
Word
The literal is always one word (but may occupy only part of it).
NulTerminated
The literal is a word-encoded byte array, that ends with a 0
byte.
FromContextualType
The literal uses as many words as required by its type, which is known
contextually (OpConstant
’s result type or OpSwitch
’s selector type).
Auto Trait Implementations§
impl RefUnwindSafe for LiteralSize
impl Send for LiteralSize
impl Sync for LiteralSize
impl Unpin for LiteralSize
impl UnwindSafe for LiteralSize
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