Check out example codes for "if let some rust". It will help you in understanding the concepts better.

Code Example 1

let number = Some(10);

if let Some(i) = number {
	println!("{}", i);
}

Learn ReactJs, React Native from akashmittal.com