pub struct Proposition {
pub name: Constant,
}
Expand description
A proposition is a Relation
with no body; it only has a name.
Fields§
§name: Constant
Implementations§
Source§impl Proposition
impl Proposition
pub fn new<T: Into<Constant>>(name: T) -> Proposition
Trait Implementations§
Source§impl Clone for Proposition
impl Clone for Proposition
Source§fn clone(&self) -> Proposition
fn clone(&self) -> Proposition
Returns a copy 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 moreSource§impl Debug for Proposition
impl Debug for Proposition
Source§impl Decodable for Proposition
impl Decodable for Proposition
Source§impl Display for Proposition
impl Display for Proposition
Source§impl Encodable for Proposition
impl Encodable for Proposition
Source§impl Hash for Proposition
impl Hash for Proposition
Source§impl Into<Literal> for Proposition
impl Into<Literal> for Proposition
Source§impl Into<Relation> for Proposition
impl Into<Relation> for Proposition
Source§impl Into<Sentence> for Proposition
impl Into<Sentence> for Proposition
Source§impl Ord for Proposition
impl Ord for Proposition
Source§fn cmp(&self, other: &Proposition) -> Ordering
fn cmp(&self, other: &Proposition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Proposition
impl PartialEq for Proposition
Source§impl PartialOrd for Proposition
impl PartialOrd for Proposition
impl Eq for Proposition
impl StructuralPartialEq for Proposition
Auto Trait Implementations§
impl Freeze for Proposition
impl RefUnwindSafe for Proposition
impl Send for Proposition
impl Sync for Proposition
impl Unpin for Proposition
impl UnwindSafe for Proposition
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)