pub struct CompiledTernaryOp {
pub first_lit: String,
pub second_lit: String,
pub precedence: u8,
pub mapping_idx: usize,
}Expand description
Compiled ternary operator
Fields§
§first_lit: StringFirst operator literal (e.g., “?”)
second_lit: StringSecond operator literal (e.g., “:”)
precedence: u8Precedence level
mapping_idx: usizeIndex into ternary mapping function array
Trait Implementations§
Source§impl Clone for CompiledTernaryOp
impl Clone for CompiledTernaryOp
Source§fn clone(&self) -> CompiledTernaryOp
fn clone(&self) -> CompiledTernaryOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledTernaryOp
impl RefUnwindSafe for CompiledTernaryOp
impl Send for CompiledTernaryOp
impl Sync for CompiledTernaryOp
impl Unpin for CompiledTernaryOp
impl UnsafeUnpin for CompiledTernaryOp
impl UnwindSafe for CompiledTernaryOp
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