pub struct ClauseList { /* private fields */ }Expand description
Ordered collection of clause identifiers, mirroring the list struct in C.
Implementations§
Source§impl ClauseList
impl ClauseList
pub fn new(name: impl Into<String>) -> Self
pub fn name(&self) -> &str
pub fn push(&mut self, id: ClauseId)
pub fn pop(&mut self) -> Option<ClauseId>
pub fn remove(&mut self, index: usize) -> Option<ClauseId>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &ClauseId>
Trait Implementations§
Source§impl Clone for ClauseList
impl Clone for ClauseList
Source§fn clone(&self) -> ClauseList
fn clone(&self) -> ClauseList
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 moreSource§impl Debug for ClauseList
impl Debug for ClauseList
Source§impl PartialEq for ClauseList
impl PartialEq for ClauseList
impl Eq for ClauseList
impl StructuralPartialEq for ClauseList
Auto Trait Implementations§
impl Freeze for ClauseList
impl RefUnwindSafe for ClauseList
impl Send for ClauseList
impl Sync for ClauseList
impl Unpin for ClauseList
impl UnwindSafe for ClauseList
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more