This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
s: Vec<String> に対して s.contains("Hello") のコンパイルが通らないの、なんかおかしくないですか……?
https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.contains
いや引数が T で where T: PartialEq<T> なのでおかしくはないんだけど、うーん……
https://doc.rust-lang.org/stable/std/collections/struct.HashSet.html#method.contains
HashSet::contains() はそれが普通にできるんですよ
あるいは s.iter().any(|s| s == "hello") とかになるんですけど、エッそれ本当にそうしないと駄目なのという
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.