pub struct MultiAudience<'a> { /* private fields */ }Expand description
Query operations over a set of audiences.
Implementations§
Source§impl<'a> MultiAudience<'a>
impl<'a> MultiAudience<'a>
Sourcepub fn new(audiences: &'a [Audience]) -> Self
pub fn new(audiences: &'a [Audience]) -> Self
Construct from a slice of audiences. Empty slice means “no audiences”
— every argument is trivially accepted under the empty universal
quantifier (common_extensions returns the union of arguments).
Sourcepub fn common_credulous<A>(
&self,
vaf: &ValueBasedFramework<A>,
) -> Result<HashSet<A>, Error>
pub fn common_credulous<A>( &self, vaf: &ValueBasedFramework<A>, ) -> Result<HashSet<A>, Error>
Returns the set of arguments that are credulously accepted (i.e., in some preferred extension) under every audience in the set.
This is the consensus answer: which proposals survive regardless of which character’s value ordering you adopt? Useful for council / jury / cabinet narrative queries.
Sourcepub fn common_grounded<A>(
&self,
vaf: &ValueBasedFramework<A>,
) -> Result<HashSet<A>, Error>
pub fn common_grounded<A>( &self, vaf: &ValueBasedFramework<A>, ) -> Result<HashSet<A>, Error>
Returns the set of arguments grounded under every audience in
the set. Strictly stronger than common_credulous — the consensus
among the most cautious answers from each character.
Auto Trait Implementations§
impl<'a> Freeze for MultiAudience<'a>
impl<'a> RefUnwindSafe for MultiAudience<'a>
impl<'a> Send for MultiAudience<'a>
impl<'a> Sync for MultiAudience<'a>
impl<'a> Unpin for MultiAudience<'a>
impl<'a> UnsafeUnpin for MultiAudience<'a>
impl<'a> UnwindSafe for MultiAudience<'a>
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