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_parse_binary_operator(kind: LuaTokenKind) -> LuaTypeBinaryOperator
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
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