pub(crate) struct AnyOf<T, const N: usize>(pub [T; N]);
Expand description
A rule that matches if any of the rules in a list matches
Tuple Fields§
§0: [T; N]
Trait Implementations§
impl<T: Copy, const N: usize> Copy for AnyOf<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for AnyOf<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for AnyOf<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for AnyOf<T, N>where
T: Send,
impl<T, const N: usize> Sync for AnyOf<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for AnyOf<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for AnyOf<T, N>where
T: 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