pub fn equals<T: AsRef<Self>>(&self, other: T) -> Result<bool> {
        match (self, other.as_ref()) {
            (Value::Table(a), Value::Table(b)) => a.equals(b),
            (Value::UserData(a), Value::UserData(b)) => a.equals(b),
            _ => Ok(self == other.as_ref()),
        }
    }
/// Compares two values for equality.
///
/// Equality comparisons do not convert strings to numbers or vice versa.
/// Tables, Functions, Threads, and Userdata are compared by reference:
/// two objects are considered equal only if they are the same object.
///
/// If Tables or Userdata have `__eq` metamethod then mlua will try to invoke it.
/// The first value is checked first. If that value does not define a metamethod
/// for `__eq`, then mlua will check the second value.
/// Then mlua calls the metamethod with the two values as arguments, if found.
Compares two values for equality.
Equality comparisons do not convert strings to numbers or vice versa.
Tables, Functions, Threads, and Userdata are compared by reference:
two objects are considered equal only if they are the same object.

If Tables or Userdata have `__eq` metamethod then mlua will try to invoke it.
The first value is checked first. If that value does not define a metamethod
for `__eq`, then mlua will check the second value.
Then mlua calls the metamethod with the two values as arguments, if found.
Compares two values for equality . Equality comparisons do not convert strings to numbers or vice versa . Tables Functions Threads and Userdata are compared by reference : two objects are considered equal only if they are the same object . If Tables or Userdata have ` __eq ` metamethod then mlua will try to invoke it . The first value is checked first . If that value does not define a metamethod for ` __eq ` then mlua will check the second value . Then mlua calls the metamethod with the two values as arguments if found .
pub fn equals<T: AsRef<Self>>(&self, other: T) -> Result<bool> {
        match (self, other.as_ref()) {
            (Value::Table(a), Value::Table(b)) => a.equals(b),
            (Value::UserData(a), Value::UserData(b)) => a.equals(b),
            _ => Ok(self == other.as_ref()),
        }
    }
pub fn equals < T : AsRef < Self > > ( & self , other : T ) -> Result < bool > { match ( self , other . as_ref ( ) ) { ( Value :: Table ( a ) , Value :: Table ( b ) ) => a . equals ( b ) , ( Value :: UserData ( a ) , Value :: UserData ( b ) ) => a . equals ( b ) , _ => Ok ( self == other . as_ref ( ) ) , } }
Compares two values for equality.
Compares two values for equality .
&self
other
T
&self
other
T