std.cmp.Contains
Contains[T]
A type that supports checking if a value is included in self
.
Required methods
contains?
Show source codeHide source code
fn pub contains?(value: ref T) -> Bool
fn pub contains?(value: ref T) -> Bool
Returns true
if the given value is contained in self
.
Implementations
Array
impl Contains[T] for Array
if
T: Equal[ref T]
ByteArray
impl Contains[Int] for ByteArray
Map
impl Contains[K] for Map
ExclusiveRange
impl Contains[Int] for ExclusiveRange
InclusiveRange
impl Contains[Int] for InclusiveRange
Set
impl Contains[V] for Set
String
impl Contains[String] for String