pub struct LatexFormatter;Trait Implementations§
Source§impl LogicFormatter for LatexFormatter
impl LogicFormatter for LatexFormatter
fn universal(&self) -> String
fn existential(&self) -> String
fn cardinal(&self, n: u32) -> String
fn at_least(&self, n: u32) -> String
fn at_most(&self, n: u32) -> String
fn and(&self) -> &'static str
fn or(&self) -> &'static str
fn implies(&self) -> &'static str
fn iff(&self) -> &'static str
fn not(&self) -> &'static str
fn necessity(&self) -> &'static str
fn possibility(&self) -> &'static str
fn past(&self) -> &'static str
fn future(&self) -> &'static str
fn progressive(&self) -> &'static str
fn perfect(&self) -> &'static str
fn habitual(&self) -> &'static str
fn iterative(&self) -> &'static str
fn passive(&self) -> &'static str
fn lambda(&self, var: &str, body: &str) -> String
fn counterfactual(&self, antecedent: &str, consequent: &str) -> String
fn superlative(&self, comp: &str, domain: &str, subject: &str) -> String
fn categorical_all(&self) -> &'static str
fn categorical_no(&self) -> &'static str
fn categorical_some(&self) -> &'static str
fn categorical_not(&self) -> &'static str
fn sanitize(&self, s: &str) -> String
fn quantifier(&self, kind: &QuantifierKind, var: &str, body: &str) -> String
fn binary_op(&self, op: &TokenType, left: &str, right: &str) -> String
fn unary_op(&self, op: &TokenType, operand: &str) -> String
fn identity(&self) -> &'static str
fn wrap_identity(&self) -> bool
fn modal(&self, domain: ModalDomain, force: f32, body: &str) -> String
fn temporal(&self, op: &TemporalOperator, body: &str) -> String
fn temporal_binary( &self, op: &BinaryTemporalOp, left: &str, right: &str, ) -> String
fn aspectual(&self, op: &AspectOperator, body: &str) -> String
fn voice(&self, op: &VoiceOperator, body: &str) -> String
fn event_quantifier(&self, pred: &str, adverbs: &[String]) -> String
fn use_simple_events(&self) -> bool
fn use_full_names(&self) -> bool
fn preserve_case(&self) -> bool
fn include_world_arguments(&self) -> bool
Source§fn write_comparative<W>(
&self,
w: &mut W,
adjective: &str,
subject: &str,
object: &str,
difference: Option<&str>,
) -> Result<(), Error>where
W: Write,
fn write_comparative<W>(
&self,
w: &mut W,
adjective: &str,
subject: &str,
object: &str,
difference: Option<&str>,
) -> Result<(), Error>where
W: Write,
Hook for customizing how comparatives are rendered.
Default implementation uses standard logic notation: tallER(subj, obj) or tallER(subj, obj, diff)
Auto Trait Implementations§
impl Freeze for LatexFormatter
impl RefUnwindSafe for LatexFormatter
impl Send for LatexFormatter
impl Sync for LatexFormatter
impl Unpin for LatexFormatter
impl UnsafeUnpin for LatexFormatter
impl UnwindSafe for LatexFormatter
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.