Rust will document the test function the following code as taking a ThisIsTotallyNotAnOption<String> rather than a Option<String>. This is confusing at first glance because without looking at the source or actually following the link, there is no indication as to what the type actually is.
use std::option::{Option as ThisIsTotallyNotAnOption};
pub fn test(o: ThisIsTotallyNotAnOption<String>) { }
Rust will document the
testfunction the following code as taking aThisIsTotallyNotAnOption<String>rather than aOption<String>. This is confusing at first glance because without looking at the source or actually following the link, there is no indication as to what the type actually is.