pub struct Literal { /* private fields */ }Expand description
A clause literal.
Implementations§
Source§impl Literal
impl Literal
Sourcepub fn is_positive(self) -> bool
pub fn is_positive(self) -> bool
Returns true if the literal is positive.
Sourcepub fn is_negative(self) -> bool
pub fn is_negative(self) -> bool
Returns true if the literal is negative.
Sourcepub fn variable(self) -> NonZeroU32
pub fn variable(self) -> NonZeroU32
Returns the variable ID of the literal.
Sourcepub fn into_value(self) -> NonZeroI32
pub fn into_value(self) -> NonZeroI32
Returns the raw value representation of the literal.
Trait Implementations§
Source§impl Ord for Literal
impl Ord for Literal
Source§impl PartialOrd for Literal
impl PartialOrd for Literal
impl Copy for Literal
impl Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
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