Why this fires¶
into::<T>() requires a direct impl From<Source> for T, and
try_into::<T>() requires a direct impl TryFrom<Source> for T.
Zolo never invents a conversion chain through an intermediate type.
Fix it¶
Implement the matching trait on the destination type (or on the source type's package boundary), or call the intended constructor explicitly.
impl From<RawId> for UserId {
fn from(value: RawId) -> UserId { return UserId { value: value.value } }
}
let id = raw.into::<UserId>()