pub struct PrologTypeSig {
pub name: String,
pub params: Vec<(PrologMode, PrologType)>,
pub description: Option<String>,
}Expand description
A plDoc-style predicate type signature.
Fields§
§name: StringPredicate name.
params: Vec<(PrologMode, PrologType)>Parameter types and modes (mode, type).
description: Option<String>Optional description.
Implementations§
Source§impl PrologTypeSig
impl PrologTypeSig
Sourcepub fn emit_pldoc(&self) -> String
pub fn emit_pldoc(&self) -> String
Emit the type signature as a plDoc comment block.
Sourcepub fn emit_pred_directive(&self) -> String
pub fn emit_pred_directive(&self) -> String
Emit as a :- pred directive (SICStus style).
Trait Implementations§
Source§impl Clone for PrologTypeSig
impl Clone for PrologTypeSig
Source§fn clone(&self) -> PrologTypeSig
fn clone(&self) -> PrologTypeSig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PrologTypeSig
impl RefUnwindSafe for PrologTypeSig
impl Send for PrologTypeSig
impl Sync for PrologTypeSig
impl Unpin for PrologTypeSig
impl UnsafeUnpin for PrologTypeSig
impl UnwindSafe for PrologTypeSig
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