Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

how to check if a thing is in a vector in rust

foo.contains(&x);
list.iter().any(|v| v == &x)
(&list).into_iter().any(|v| v == &x)
 
PREVIOUS NEXT
Tagged: #check #vector #rust
ADD COMMENT
Topic
Name
8+9 =