pub struct ChoiceVariant<RS: ResolveState = Resolved> {
pub name: String,
pub tag: Option<Tag>,
pub type: Type<RS>,
}Fields§
§name: String§tag: Option<Tag>§type: Type<RS>Implementations§
Source§impl<RS: ResolveState> ChoiceVariant<RS>
impl<RS: ResolveState> ChoiceVariant<RS>
Source§impl ChoiceVariant<Unresolved>
impl ChoiceVariant<Unresolved>
pub fn try_resolve<R: Resolver<<Resolved as ResolveState>::SizeType> + Resolver<<Resolved as ResolveState>::RangeType> + Resolver<<Resolved as ResolveState>::ConstType> + Resolver<Type<Unresolved>>>( &self, resolver: &R, ) -> Result<ChoiceVariant<Resolved>, ResolveError>
Trait Implementations§
Source§impl<RS: Clone + ResolveState> Clone for ChoiceVariant<RS>
impl<RS: Clone + ResolveState> Clone for ChoiceVariant<RS>
Source§fn clone(&self) -> ChoiceVariant<RS>
fn clone(&self) -> ChoiceVariant<RS>
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<RS: Debug + ResolveState> Debug for ChoiceVariant<RS>
impl<RS: Debug + ResolveState> Debug for ChoiceVariant<RS>
Source§impl<RS: PartialEq + ResolveState> PartialEq for ChoiceVariant<RS>
impl<RS: PartialEq + ResolveState> PartialEq for ChoiceVariant<RS>
Source§fn eq(&self, other: &ChoiceVariant<RS>) -> bool
fn eq(&self, other: &ChoiceVariant<RS>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<RS: PartialOrd + ResolveState> PartialOrd for ChoiceVariant<RS>
impl<RS: PartialOrd + ResolveState> PartialOrd for ChoiceVariant<RS>
Source§impl<RS: ResolveState> TagProperty for ChoiceVariant<RS>
impl<RS: ResolveState> TagProperty for ChoiceVariant<RS>
impl<RS: ResolveState> StructuralPartialEq for ChoiceVariant<RS>
Auto Trait Implementations§
impl<RS> Freeze for ChoiceVariant<RS>
impl<RS> RefUnwindSafe for ChoiceVariant<RS>where
<RS as ResolveState>::SizeType: RefUnwindSafe,
<RS as ResolveState>::RangeType: RefUnwindSafe,
<RS as ResolveState>::ConstType: RefUnwindSafe,
impl<RS> Send for ChoiceVariant<RS>where
<RS as ResolveState>::SizeType: Send,
<RS as ResolveState>::RangeType: Send,
<RS as ResolveState>::ConstType: Send,
impl<RS> Sync for ChoiceVariant<RS>where
<RS as ResolveState>::SizeType: Sync,
<RS as ResolveState>::RangeType: Sync,
<RS as ResolveState>::ConstType: Sync,
impl<RS> Unpin for ChoiceVariant<RS>where
<RS as ResolveState>::SizeType: Unpin,
<RS as ResolveState>::RangeType: Unpin,
<RS as ResolveState>::ConstType: Unpin,
impl<RS> UnsafeUnpin for ChoiceVariant<RS>
impl<RS> UnwindSafe for ChoiceVariant<RS>where
<RS as ResolveState>::SizeType: UnwindSafe,
<RS as ResolveState>::RangeType: UnwindSafe,
<RS as ResolveState>::ConstType: UnwindSafe,
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