pub struct FunctionTerm(/* private fields */);Expand description
Implementations§
Source§impl FunctionTerm
impl FunctionTerm
Sourcepub fn new<I: IntoIterator<Item = Term>>(
symbol: FunctionSymbol,
terms: I,
) -> Self
pub fn new<I: IntoIterator<Item = Term>>( symbol: FunctionSymbol, terms: I, ) -> Self
Creates a new function term, (<function-symbol> <term>*).
Sourcepub const fn symbol(&self) -> &FunctionSymbol
pub const fn symbol(&self) -> &FunctionSymbol
Gets the function symbol.
Trait Implementations§
Source§impl AsRef<FunctionSymbol> for FunctionTerm
impl AsRef<FunctionSymbol> for FunctionTerm
Source§fn as_ref(&self) -> &FunctionSymbol
fn as_ref(&self) -> &FunctionSymbol
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for FunctionTerm
impl Clone for FunctionTerm
Source§impl Debug for FunctionTerm
impl Debug for FunctionTerm
Source§impl<'de> Deserialize<'de> for FunctionTerm
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FunctionTerm
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
impl Eq for FunctionTerm
Source§impl From<FunctionTerm> for Term
impl From<FunctionTerm> for Term
Source§fn from(value: FunctionTerm) -> Self
fn from(value: FunctionTerm) -> Self
Converts to this type from the input type.
Source§impl Parser for FunctionTerm
Available on crate feature parser only.
impl Parser for FunctionTerm
Available on crate feature
parser only.Source§type Item = FunctionTerm
type Item = FunctionTerm
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for FunctionTerm
impl PartialEq for FunctionTerm
Source§impl Serialize for FunctionTerm
Available on crate feature serde only.
impl Serialize for FunctionTerm
Available on crate feature
serde only.impl StructuralPartialEq for FunctionTerm
Source§impl Visitor<FunctionTerm, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<FunctionTerm, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &FunctionTerm) -> RcDoc<'static>
fn visit(&self, value: &FunctionTerm) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for FunctionTerm
impl Freeze for FunctionTerm
impl Move for FunctionTerm
impl RefUnwindSafe for FunctionTerm
impl Send for FunctionTerm
impl Sync for FunctionTerm
impl Unpin for FunctionTerm
impl UnsafeUnpin for FunctionTerm
impl UnwindSafe for FunctionTerm
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.