Search results

There are no results.

std.cmp.Contains

Contains[T]

A type that supports checking if a value is included in self.

Required methods

contains?

Show source code
Hide 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

std.array.

Array

impl Contains[T] for Array
if
  T: Equal[ref T]
std.byte_array.

ByteArray

impl Contains[Int] for ByteArray
std.map.

Map

impl Contains[K] for Map
std.range.

ExclusiveRange

impl Contains[Int] for ExclusiveRange
std.range.

InclusiveRange

impl Contains[Int] for InclusiveRange
std.set.

Set

impl Contains[V] for Set
std.string.

String

impl Contains[String] for String