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
Mica celeste_hearts_non_binary @mica@mk.absturztau.be
4mo
@star what the fuck am i looking at

<- a go developer
1
0
1
0
User avatar
flori_ava_star:~cursor_blinking made-with-estrogen verifiedlesbian @star@amazonawaws.com
4mo
@mica hastily written code and TURBOFIIIISHHh
:celeste_hearts_non_binary@mk.absturztau.be:1
0
0
0
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
User avatar
Der Große Böse Wolff @wolff@chaos.social
4mo
rust softwaregore @star ;}
1
0
0
0
User avatar
flori_ava_star:~cursor_blinking made-with-estrogen verifiedlesbian @star@amazonawaws.com
4mo
rust softwaregore @wolff this can certainly be improved on my end but i think it is funny regardless :3
0
0
0
0
User avatar
Max @korenchkin@chaos.social
4mo
rust softwaregore @star thisisfine
0
0
1
0
User avatar
lizzy مثلية الله ☭ heart_lesbian_diagonal2 cuwu @lizzy@social.vlhl.dev
4mo
this is what you get when you refuse to think of your type system as just another form of terms being passed around & don't design the syntax around it appropriately.
1
0
1
0
User avatar
flori_ava_star:~cursor_blinking made-with-estrogen verifiedlesbian @star@amazonawaws.com
4mo
@lizzy I think I can also do a better job with my code (drafting things rn), but yeah, this is tough to look at
0
0
1
0