Struct clingo_sys::clingo_weighted_literal
source · #[repr(C)]pub struct clingo_weighted_literal {
pub literal: clingo_literal_t,
pub weight: clingo_weight_t,
}
Expand description
! A Literal with an associated weight.
Fields§
§literal: clingo_literal_t
§weight: clingo_weight_t
Trait Implementations§
source§impl Clone for clingo_weighted_literal
impl Clone for clingo_weighted_literal
source§fn clone(&self) -> clingo_weighted_literal
fn clone(&self) -> clingo_weighted_literal
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 clingo_weighted_literal
impl Debug for clingo_weighted_literal
impl Copy for clingo_weighted_literal
Auto Trait Implementations§
impl RefUnwindSafe for clingo_weighted_literal
impl Send for clingo_weighted_literal
impl Sync for clingo_weighted_literal
impl Unpin for clingo_weighted_literal
impl UnwindSafe for clingo_weighted_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