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
I was wondering why some of the structs in your api arent cloneable. The same with the other derived traits: PartialEq and Eq. The ones in particular are the File and Blob structs in the gloo_file. crate.
Motivation
It would be nice to be able to clone those structs.
Detailed Explanation
It looks like all the structs that bind to the web api in web-sys have this #[derive(Debug, Clone, PartialEq, Eq)] derive macro on them which means they shuold be fine to be cloned. It looks like File and Blob are simple wrappers around their respective structs in the web-sys crate. Is there a reason for why these structs should be not be clonable too?
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Summary
I was wondering why some of the structs in your api arent cloneable. The same with the other derived traits: PartialEq and Eq. The ones in particular are the File and Blob structs in the gloo_file. crate.
Motivation
It would be nice to be able to clone those structs.
Detailed Explanation
It looks like all the structs that bind to the web api in web-sys have this
#[derive(Debug, Clone, PartialEq, Eq)]
derive macro on them which means they shuold be fine to be cloned. It looks likeFile
andBlob
are simple wrappers around their respective structs in the web-sys crate. Is there a reason for why these structs should be not be clonable too?The text was updated successfully, but these errors were encountered: