pub struct AtnConfigSet { /* private fields */ }Implementations§
Source§impl AtnConfigSet
impl AtnConfigSet
pub fn new() -> Self
pub fn new_full_context(full_context: bool) -> Self
pub fn add(&mut self, config: AtnConfig) -> bool
Sourcepub fn add_with_merge_cache(
&mut self,
config: AtnConfig,
cache: Option<&mut PredictionContextMergeCache>,
) -> bool
pub fn add_with_merge_cache( &mut self, config: AtnConfig, cache: Option<&mut PredictionContextMergeCache>, ) -> bool
Adds a configuration, merging prediction contexts for equivalent
(state, alt, semantic-context) keys.
pub fn configs(&self) -> &[AtnConfig]
pub const fn is_empty(&self) -> bool
pub const fn len(&self) -> usize
pub fn set_readonly(&mut self, readonly: bool)
pub const fn is_readonly(&self) -> bool
pub const fn full_context(&self) -> bool
pub const fn has_semantic_context(&self) -> bool
pub const fn set_has_semantic_context(&mut self, value: bool)
pub const fn dips_into_outer_context(&self) -> bool
pub fn unique_alt(&mut self) -> Option<usize>
pub fn alts(&self) -> BTreeSet<usize>
pub fn conflicting_alt_subsets(&self) -> Vec<BTreeSet<usize>>
pub fn conflicting_alts(&mut self) -> BTreeSet<usize>
Trait Implementations§
Source§impl Clone for AtnConfigSet
impl Clone for AtnConfigSet
Source§fn clone(&self) -> AtnConfigSet
fn clone(&self) -> AtnConfigSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AtnConfigSet
impl Debug for AtnConfigSet
Source§impl Default for AtnConfigSet
impl Default for AtnConfigSet
Source§fn default() -> AtnConfigSet
fn default() -> AtnConfigSet
Returns the “default value” for a type. Read more
impl Eq for AtnConfigSet
Source§impl Ord for AtnConfigSet
impl Ord for AtnConfigSet
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AtnConfigSet
impl PartialEq for AtnConfigSet
Auto Trait Implementations§
impl !Send for AtnConfigSet
impl !Sync for AtnConfigSet
impl Freeze for AtnConfigSet
impl RefUnwindSafe for AtnConfigSet
impl Unpin for AtnConfigSet
impl UnsafeUnpin for AtnConfigSet
impl UnwindSafe for AtnConfigSet
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