User avatar
flori_ava_star:~cursor_blinking made-with-estrogen verifiedlesbian @star@amazonawaws.com
4mo
rust softwaregore Nested associated types in traits ankhafirerage
pub trait IdCertBehaviors<S: Signature, P: PublicKey<S>>: IdCertFields<S, P> + Sized
where PolyprotoDistinguishedName: From<<<Self as IdCertFields<S, P>>::TbsCert as IdCertTbsFields<S, P>>::SubjectDistinguishedNameVariant>, CertificateConversionError: From<<<Self as IdCertFields<S, P>>::TbsCert as TryFrom<IdCertTbsBase<S, P>>>::Error> {
    fn try_from_ca_csr(id_csr: Self::TbsCert, signing_key: &impl PrivateKey<S, PublicKey = P>, serial_number: SerialNumber, issuer: <<Self as IdCertFields<S, P>>::TbsCert as IdCertTbsFields<S, P>>::SubjectDistinguishedNameVariant);
}
:celeste_hearts_non_binary@mk.absturztau.be:1
6
2
4
1
User avatar
Tay @tay@transfem.social
4mo
rust softwaregore @star
633 characters
3 lines of rust
1
0
1
0
User avatar
flori_ava_star:~cursor_blinking made-with-estrogen verifiedlesbian @star@amazonawaws.com
4mo
rust softwaregore @tay neobot_upside_down yup
but i think i can also do a better job by declaring the trait bounds better, or by just adding another trait which holds these associated types, so they needn't be nested any more

but i am just drafting things rn and thought it looked funny :3
:neobot_boop_cute@transfem.social:1
0
0
1
1