#[non_exhaustive]pub struct ResolvedCase {
pub name: String,
pub components: Vec<ResolvedComponent>,
pub unresolved: Vec<UnresolvedAction>,
}Expand description
What one case bound to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§components: Vec<ResolvedComponent>The elements the case’s actions bound to, in action order. An action naming several elements contributes all of them.
unresolved: Vec<UnresolvedAction>The actions that bound to nothing, with the reason each one did not.
Implementations§
Source§impl ResolvedCase
impl ResolvedCase
Sourcepub fn is_resolved(&self) -> bool
pub fn is_resolved(&self) -> bool
Whether every action of the case bound.
Trait Implementations§
Source§impl Clone for ResolvedCase
impl Clone for ResolvedCase
Source§fn clone(&self) -> ResolvedCase
fn clone(&self) -> ResolvedCase
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 ResolvedCase
impl Debug for ResolvedCase
Source§impl Default for ResolvedCase
impl Default for ResolvedCase
Source§fn default() -> ResolvedCase
fn default() -> ResolvedCase
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResolvedCase
impl PartialEq for ResolvedCase
Source§fn eq(&self, other: &ResolvedCase) -> bool
fn eq(&self, other: &ResolvedCase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedCase
Auto Trait Implementations§
impl Freeze for ResolvedCase
impl RefUnwindSafe for ResolvedCase
impl Send for ResolvedCase
impl Sync for ResolvedCase
impl Unpin for ResolvedCase
impl UnsafeUnpin for ResolvedCase
impl UnwindSafe for ResolvedCase
Blanket Implementations§
impl<T> Allocation for T
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