pub enum LuaOpKind {
None,
Unary(UnaryOperator),
Binary(BinaryOperator),
TypeUnary(LuaTypeUnaryOperator),
TypeBinary(LuaTypeBinaryOperator),
TypeTernary(LuaTypeTernaryOperator),
}Variants§
None
Unary(UnaryOperator)
Binary(BinaryOperator)
TypeUnary(LuaTypeUnaryOperator)
TypeBinary(LuaTypeBinaryOperator)
TypeTernary(LuaTypeTernaryOperator)
Implementations§
source§impl LuaOpKind
impl LuaOpKind
pub fn to_unary_operator(kind: LuaTokenKind) -> UnaryOperator
pub fn to_binary_operator(kind: LuaTokenKind) -> BinaryOperator
pub fn to_type_unary_operator(kind: LuaTokenKind) -> LuaTypeUnaryOperator
pub fn to_type_binary_operator(kind: LuaTokenKind) -> LuaTypeBinaryOperator
Trait Implementations§
source§impl From<BinaryOperator> for LuaOpKind
impl From<BinaryOperator> for LuaOpKind
source§fn from(op: BinaryOperator) -> Self
fn from(op: BinaryOperator) -> Self
Converts to this type from the input type.
source§impl From<LuaTypeBinaryOperator> for LuaOpKind
impl From<LuaTypeBinaryOperator> for LuaOpKind
source§fn from(op: LuaTypeBinaryOperator) -> Self
fn from(op: LuaTypeBinaryOperator) -> Self
Converts to this type from the input type.
source§impl From<LuaTypeTernaryOperator> for LuaOpKind
impl From<LuaTypeTernaryOperator> for LuaOpKind
source§fn from(op: LuaTypeTernaryOperator) -> Self
fn from(op: LuaTypeTernaryOperator) -> Self
Converts to this type from the input type.
source§impl From<LuaTypeUnaryOperator> for LuaOpKind
impl From<LuaTypeUnaryOperator> for LuaOpKind
source§fn from(op: LuaTypeUnaryOperator) -> Self
fn from(op: LuaTypeUnaryOperator) -> Self
Converts to this type from the input type.
source§impl From<UnaryOperator> for LuaOpKind
impl From<UnaryOperator> for LuaOpKind
source§fn from(op: UnaryOperator) -> Self
fn from(op: UnaryOperator) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LuaOpKind
Auto Trait Implementations§
impl Freeze for LuaOpKind
impl RefUnwindSafe for LuaOpKind
impl Send for LuaOpKind
impl Sync for LuaOpKind
impl Unpin for LuaOpKind
impl UnwindSafe for LuaOpKind
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