pub struct WhiteList<'a> {
pub list: &'a [&'a str],
}Expand description
One of the strings of a list, exactly as the list spells it.
PHP: new WhiteList($list, strict: true).
Fields§
§list: &'a [&'a str]The valid values.
Implementations§
Trait Implementations§
impl<'a> Copy for WhiteList<'a>
impl<'a> Eq for WhiteList<'a>
impl<'a> StructuralPartialEq for WhiteList<'a>
Auto Trait Implementations§
impl<'a> Forget for WhiteList<'a>
impl<'a> Freeze for WhiteList<'a>
impl<'a> Move for WhiteList<'a>
impl<'a> RefUnwindSafe for WhiteList<'a>
impl<'a> Send for WhiteList<'a>
impl<'a> Sync for WhiteList<'a>
impl<'a> Unpin for WhiteList<'a>
impl<'a> UnsafeUnpin for WhiteList<'a>where
&'a [&'a str]: UnsafeUnpin,
impl<'a> UnwindSafe for WhiteList<'a>where
&'a [&'a str]: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.