mirror of https://github.com/fafhrd91/actix-web
fixup docs
This commit is contained in:
parent
5a2ba2de98
commit
e760599866
|
@ -20,12 +20,12 @@ pub enum Preference<T> {
|
|||
}
|
||||
|
||||
impl<T> Preference<T> {
|
||||
/// Returns true if the preference is the any/wildcard (`*`) value.
|
||||
/// Returns true if preference is the any/wildcard (`*`) value.
|
||||
pub fn is_any(&self) -> bool {
|
||||
matches!(self, Self::Any)
|
||||
}
|
||||
|
||||
/// Returns true if variant is a specific item (`T`) variant.
|
||||
/// Returns true if preference is the specific item (`T`) variant.
|
||||
pub fn is_specific(&self) -> bool {
|
||||
matches!(self, Self::Specific(_))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue