pub trait ToUserId {
// Required method
fn to_user_id(&self) -> UserId;
}Expand description
Get UserId from the type reference.
Required Methods§
fn to_user_id(&self) -> UserId
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".