How do you read/understand with_collector_endpoint
method definition. Its mentioned here.
- Does this mean there should exist a
TryFrom
fromT
toURI
- URI casted as
TryFrom<T>
, (meaning the error for theTryFrom
implementation) should be convertibleInto
InvalidUri
??
pub fn with_collector_endpoint<T>(self, collector_endpoint: T) -> Self
where
Uri: TryFrom<T>,
<Uri as TryFrom<T>>::Error: Into<InvalidUri>,
I am a bit confused as I have till now only seen Where
clauses where the Generic Item (generally T
) is on the left hand side of the colon (:
). Example below.
Which meansT
should satisfy the Debug trait.
fn print_debug(t: &T) where T: Debug {
println!("{:?}", t);
}
