pub enum TimedFluentExpression {
Now,
Scaled(FluentExpression),
}Expand description
An f-exp-t.
§Requirements
Requires Continuous Effects and Numeric Fluents.
§Usage
Used by TimedEffect.
Variants§
Now
The elapsed time, #t.
Scaled(FluentExpression)
A fluent expression scaled by the elapsed time, (* <f-exp> #t) or (* #t <f-exp>).
Implementations§
Source§impl TimedFluentExpression
impl TimedFluentExpression
Sourcepub const fn scaled(exp: FluentExpression) -> Self
pub const fn scaled(exp: FluentExpression) -> Self
Creates a fluent expression scaled by the elapsed time, (* <f-exp> #t).
Sourcepub fn new_scaled(exp: FluentExpression) -> Self
pub fn new_scaled(exp: FluentExpression) -> Self
Creates a fluent expression scaled by the elapsed time, (* <f-exp> #t).
Trait Implementations§
Source§impl Clone for TimedFluentExpression
impl Clone for TimedFluentExpression
Source§impl Debug for TimedFluentExpression
impl Debug for TimedFluentExpression
Source§impl Default for TimedFluentExpression
impl Default for TimedFluentExpression
Source§impl<'de> Deserialize<'de> for TimedFluentExpression
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TimedFluentExpression
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FluentExpression> for TimedFluentExpression
impl From<FluentExpression> for TimedFluentExpression
Source§fn from(value: FluentExpression) -> Self
fn from(value: FluentExpression) -> Self
Converts to this type from the input type.
Source§impl Parser for TimedFluentExpression
Available on crate feature parser only.
impl Parser for TimedFluentExpression
Available on crate feature
parser only.Source§type Item = TimedFluentExpression
type Item = TimedFluentExpression
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for TimedFluentExpression
impl PartialEq for TimedFluentExpression
Source§impl Serialize for TimedFluentExpression
Available on crate feature serde only.
impl Serialize for TimedFluentExpression
Available on crate feature
serde only.impl StructuralPartialEq for TimedFluentExpression
Source§impl Visitor<TimedFluentExpression, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<TimedFluentExpression, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &TimedFluentExpression) -> RcDoc<'static>
fn visit(&self, value: &TimedFluentExpression) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for TimedFluentExpression
impl Freeze for TimedFluentExpression
impl Move for TimedFluentExpression
impl RefUnwindSafe for TimedFluentExpression
impl Send for TimedFluentExpression
impl Sync for TimedFluentExpression
impl Unpin for TimedFluentExpression
impl UnsafeUnpin for TimedFluentExpression
impl UnwindSafe for TimedFluentExpression
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Pretty for Twhere
T: PrettyVisit,
impl<T> Pretty for Twhere
T: PrettyVisit,
Source§impl<T> PrettyVisit for T
impl<T> PrettyVisit for T
Source§fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
Available on crate feature
pretty only.Builds the document for
self with the renderer r.