You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enumCreature{Crab(String),Lobster(String),Person(String),}fnmain(){let state = Creature::Crab("Ferris");ifletCreature::Crab(name) | Creature::Person(name) = state {println!("This creature's name is: {}", name);}}
The methods str::{trim_left, trim_right, trim_left_matches, trim_right_matches} are now deprecated in the standard library, and their usage will now produce a warning. Please use the str::{trim_start, trim_end, trim_start_matches, trim_end_matches} methods instead.
The Error::cause method has been deprecated in favor of Error::source which supports downcasting.