You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is also a convenience macro wrapper for that crate here: https://github.com/kardeiz/objekt-clonable, which ends up with minimal extra code and just adding supertraits, such as:
#[clonable]pubtraitRecipient:Clone{
...
}
Would also have to derive clone on some internal structs that use it too, Stanza, Header, BaseDecryptor, etc.
Could whip up a draft PR if this is something you be interested in. Thanks.
The text was updated successfully, but these errors were encountered:
For ergonomics it would nice to be able to clone the
Identity
andRecipient
traits, had a few usecases where it becomes unwieldy without it.Probably the easiest way to implement this is with https://github.com/dtolnay/dyn-clone,
There is also a convenience macro wrapper for that crate here: https://github.com/kardeiz/objekt-clonable, which ends up with minimal extra code and just adding supertraits, such as:
Would also have to derive clone on some internal structs that use it too, Stanza, Header, BaseDecryptor, etc.
Could whip up a draft PR if this is something you be interested in. Thanks.
The text was updated successfully, but these errors were encountered: