Reduce size of Variant trait.
This commit is contained in:
@@ -57,10 +57,19 @@ pub const FN_IDX_SET: &str = "index$set$";
|
||||
pub const FN_ANONYMOUS: &str = "anon$";
|
||||
|
||||
/// Standard equality comparison operator.
|
||||
///
|
||||
/// Some standard functions (e.g. searching an [`Array`][crate::Array]) implicitly call this
|
||||
/// function to compare two [`Dynamic`] values.
|
||||
pub const OP_EQUALS: &str = Token::EqualsTo.literal_syntax();
|
||||
|
||||
/// Standard method function for containment testing.
|
||||
/// The `in` operator is implemented as a call to this method.
|
||||
/// Standard concatenation operator.
|
||||
///
|
||||
/// Used primarily to build up interpolated strings.
|
||||
pub const OP_CONCAT: &str = Token::PlusAssign.literal_syntax();
|
||||
|
||||
/// Standard containment testing function.
|
||||
///
|
||||
/// The `in` operator is implemented as a call to this function.
|
||||
pub const OP_CONTAINS: &str = "contains";
|
||||
|
||||
/// Standard exclusive range operator.
|
||||
@@ -69,9 +78,6 @@ pub const OP_EXCLUSIVE_RANGE: &str = Token::ExclusiveRange.literal_syntax();
|
||||
/// Standard inclusive range operator.
|
||||
pub const OP_INCLUSIVE_RANGE: &str = Token::InclusiveRange.literal_syntax();
|
||||
|
||||
/// Standard concatenation operator token.
|
||||
pub const OP_CONCAT: &str = Token::PlusAssign.literal_syntax();
|
||||
|
||||
/// Method of chaining.
|
||||
#[cfg(any(not(feature = "no_index"), not(feature = "no_object")))]
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
||||
|
Reference in New Issue
Block a user