pub struct HeadDisjunction(/* private fields */);Expand description
A non-empty disjunction of head conjunctions, in authored order.
Implementations§
Source§impl HeadDisjunction
impl HeadDisjunction
Sourcepub fn try_new(
disjuncts: Vec<HeadConjunction>,
) -> Result<Self, EmptyHeadCollection>
pub fn try_new( disjuncts: Vec<HeadConjunction>, ) -> Result<Self, EmptyHeadCollection>
Sourcepub fn disjuncts(&self) -> &[HeadConjunction]
pub fn disjuncts(&self) -> &[HeadConjunction]
The disjuncts, never empty.
Sourcepub fn disjuncts_mut(&mut self) -> &mut [HeadConjunction]
pub fn disjuncts_mut(&mut self) -> &mut [HeadConjunction]
Mutable access to the disjuncts; the count cannot change.
Trait Implementations§
Source§impl Clone for HeadDisjunction
impl Clone for HeadDisjunction
Source§impl Debug for HeadDisjunction
impl Debug for HeadDisjunction
Source§impl<'de> Deserialize<'de> for HeadDisjunction
impl<'de> Deserialize<'de> for HeadDisjunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HeadDisjunction
Source§impl From<HeadDisjunction> for Vec<HeadConjunction>
impl From<HeadDisjunction> for Vec<HeadConjunction>
Source§fn from(disjunction: HeadDisjunction) -> Self
fn from(disjunction: HeadDisjunction) -> Self
Converts to this type from the input type.
Source§impl Hash for HeadDisjunction
impl Hash for HeadDisjunction
Source§impl PartialEq for HeadDisjunction
impl PartialEq for HeadDisjunction
Source§impl Serialize for HeadDisjunction
impl Serialize for HeadDisjunction
impl StructuralPartialEq for HeadDisjunction
Source§impl TryFrom<Vec<HeadConjunction>> for HeadDisjunction
impl TryFrom<Vec<HeadConjunction>> for HeadDisjunction
Auto Trait Implementations§
impl Forget for HeadDisjunction
impl Freeze for HeadDisjunction
impl Move for HeadDisjunction
impl RefUnwindSafe for HeadDisjunction
impl Send for HeadDisjunction
impl Sync for HeadDisjunction
impl Unpin for HeadDisjunction
impl UnsafeUnpin for HeadDisjunction
impl UnwindSafe for HeadDisjunction
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