pub struct LuaOperator { /* private fields */ }
Implementations§
Source§impl LuaOperator
impl LuaOperator
pub fn new( owner: LuaOperatorOwner, op: LuaOperatorMetaMethod, file_id: FileId, range: TextRange, func: OperatorFunction, ) -> Self
pub fn get_owner(&self) -> &LuaOperatorOwner
pub fn get_op(&self) -> LuaOperatorMetaMethod
pub fn get_operand(&self, db: &DbIndex) -> LuaType
pub fn get_result(&self, db: &DbIndex) -> Result<LuaType, InferFailReason>
pub fn get_operator_func(&self, db: &DbIndex) -> LuaType
pub fn get_file_id(&self) -> FileId
pub fn get_id(&self) -> LuaOperatorId
pub fn get_range(&self) -> TextRange
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaOperator
impl RefUnwindSafe for LuaOperator
impl Send for LuaOperator
impl Sync for LuaOperator
impl Unpin for LuaOperator
impl UnwindSafe for LuaOperator
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