pub enum Operand {
ElementOperand(ElementOperand),
LiteralOperand(LiteralOperand),
AttributeOperand(AttributeOperand),
SimpleAttributeOperand(SimpleAttributeOperand),
}Expand description
A filter operand.
Variants§
ElementOperand(ElementOperand)
Operand pointing at another filter element.
LiteralOperand(LiteralOperand)
Operand resolving to a literal value.
AttributeOperand(AttributeOperand)
Operand resolving to an attribute of some node.
SimpleAttributeOperand(SimpleAttributeOperand)
Operand resolving to an attribute of some type.
Implementations§
Source§impl Operand
impl Operand
Sourcepub fn literal<T>(literal: T) -> Operandwhere
T: Into<LiteralOperand>,
pub fn literal<T>(literal: T) -> Operandwhere
T: Into<LiteralOperand>,
Create a literal operand with the given type.
Sourcepub fn simple_attribute<T>(
type_definition_id: T,
browse_path: &str,
attribute_id: AttributeId,
index_range: NumericRange,
) -> Operand
pub fn simple_attribute<T>( type_definition_id: T, browse_path: &str, attribute_id: AttributeId, index_range: NumericRange, ) -> Operand
Creates a simple attribute operand. The browse path is the browse name using / as a separator.
Sourcepub fn operand_type(&self) -> OperandType
pub fn operand_type(&self) -> OperandType
Get the operand type.
Sourcepub fn is_element(&self) -> bool
pub fn is_element(&self) -> bool
Return true if the operand is an element operand.
Sourcepub fn is_literal(&self) -> bool
pub fn is_literal(&self) -> bool
Return true if the operand is a literal operand.
Sourcepub fn is_attribute(&self) -> bool
pub fn is_attribute(&self) -> bool
Return true if the operand is an attribute operand.
Sourcepub fn is_simple_attribute(&self) -> bool
pub fn is_simple_attribute(&self) -> bool
Return true if the operand is a simple attribute operand.
Trait Implementations§
Source§impl From<&Operand> for ExtensionObject
impl From<&Operand> for ExtensionObject
Source§impl From<ElementOperand> for Operand
impl From<ElementOperand> for Operand
Source§fn from(v: ElementOperand) -> Operand
fn from(v: ElementOperand) -> Operand
Converts to this type from the input type.
Source§impl From<LiteralOperand> for Operand
impl From<LiteralOperand> for Operand
Source§fn from(v: LiteralOperand) -> Self
fn from(v: LiteralOperand) -> Self
Converts to this type from the input type.
Source§impl From<Operand> for ExtensionObject
impl From<Operand> for ExtensionObject
Source§impl From<SimpleAttributeOperand> for Operand
impl From<SimpleAttributeOperand> for Operand
Source§fn from(v: SimpleAttributeOperand) -> Self
fn from(v: SimpleAttributeOperand) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ExtensionObject> for Operand
impl TryFrom<ExtensionObject> for Operand
Source§type Error = StatusCode
type Error = StatusCode
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Operand
impl !RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnsafeUnpin for Operand
impl !UnwindSafe for Operand
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