pub enum Row {
Empty,
Comment(Arc<str>),
Rule(Arc<Rule>),
Touched(Arc<Rule>),
}Variants§
Implementations§
Source§impl Row
impl Row
pub fn convert(cell: Cell) -> Self
pub fn is_empty(&self) -> bool
pub fn is_comment(&self) -> bool
pub fn is_rule(&self) -> bool
pub fn is_touched(&self) -> bool
pub fn rule(&self) -> Option<Arc<Rule>>
pub fn comment(&self) -> Arc<str>
pub fn identifier(&self) -> Arc<str>
pub fn typedef(&self) -> Option<&Typedef>
pub fn formula(&self) -> Option<&Expression>
pub fn value(&self) -> Arc<Value>
Sourcepub fn partial_save(&self, index: usize, writer: &mut Writer) -> Option<Self>
pub fn partial_save(&self, index: usize, writer: &mut Writer) -> Option<Self>
pub fn print(&self, writer: &mut Writer)
Trait Implementations§
Source§impl ExpressionLike for Row
impl ExpressionLike for Row
Source§fn to_formula(&self) -> String
fn to_formula(&self) -> String
Return the formula-string representation (round-trippable by the parser).
Source§fn evaluate(&self, context: &mut dyn ContextLike) -> Result<Arc<Value>>
fn evaluate(&self, context: &mut dyn ContextLike) -> Result<Arc<Value>>
Evaluate this expression with the provided
ContextLike, returning a Value or error.Source§impl WriterLike for Row
impl WriterLike for Row
Source§fn to_stringized(&self) -> String
fn to_stringized(&self) -> String
Return a string representation (raw unsafe output).
Source§fn to_sanitized(&self) -> String
fn to_sanitized(&self) -> String
Return a sanitized string representation (escaped for safe output).
Source§fn to_expressionized(&self) -> String
fn to_expressionized(&self) -> String
Return a sanitized string representation (escaped for safe output).
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.