pub struct Collection(/* private fields */);
Implementations§
Source§impl Collection
impl Collection
pub fn new_string(value: String) -> Self
pub fn new_integer(value: Integer) -> Self
pub fn new_decimal(value: Decimal) -> Self
pub fn new_datetime(value: DateTime) -> Self
pub fn new_boolean(value: Boolean) -> Self
pub fn new_any(value: Box<dyn Executor>) -> Self
pub fn first(&self) -> Option<&Box<dyn Executor>>
pub fn count(&self) -> usize
pub fn combine(&mut self, other: Collection)
pub fn push(&mut self, value: Box<dyn Executor>)
pub fn empty(&self) -> bool
pub fn exists(&self) -> bool
pub fn to_integer(&self) -> Result<Option<Integer>>
pub fn to_boolean(&self) -> Result<Option<bool>>
pub fn all_true(&self) -> Result<bool>
pub fn element( self, symbol: &String, index: &Option<usize>, ) -> Result<Collection>
pub fn filter(self, criteria: &Expr) -> Result<Collection>
pub fn call( self, symbol: &String, args: &Option<Vec<Expr>>, ) -> Result<Collection>
pub fn single(self) -> Result<Collection>
Sourcepub fn eq(self, right: Collection) -> Result<Collection>
pub fn eq(self, right: Collection) -> Result<Collection>
左侧集合与右侧集合相等 规则:
- 两侧任何一侧为空,则结果为空
- 如果两侧集合数量不相等,则结果为false
pub fn not(self) -> Result<Collection>
pub fn gt(self, _right: Collection) -> Result<Collection>
pub fn ge(self, _right: Collection) -> Result<Collection>
pub fn lt(self, _right: Collection) -> Result<Collection>
pub fn le(self, _right: Collection) -> Result<Collection>
Trait Implementations§
Source§impl Add for Collection
impl Add for Collection
Source§impl BitAnd for Collection
impl BitAnd for Collection
Source§impl BitOr for Collection
impl BitOr for Collection
Source§impl BitXor for Collection
impl BitXor for Collection
Source§impl Debug for Collection
impl Debug for Collection
Source§impl Div for Collection
impl Div for Collection
Source§impl Mul for Collection
impl Mul for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl !RefUnwindSafe for Collection
impl !Send for Collection
impl !Sync for Collection
impl Unpin for Collection
impl !UnwindSafe for Collection
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