Hugal31 / yara-rust

Rust bindings for VirusTotal/Yara
Apache License 2.0
70 stars 30 forks source link

feat: Implemented MemoryBlockIterator for Box #144

Closed ikrivosheev closed 5 months ago

Hugal31 commented 5 months ago

Why is that necessary? Box implements Deref, so it should automatically call the inner type implementation of MemoryBlockIterator.

ikrivosheev commented 5 months ago

Why is that necessary? Box implements Deref, so it should automatically call the inner type implementation of MemoryBlockIterator.

Well, I don't understand, but io::Read is implemented for Box and also for &mut T.

ikrivosheev commented 5 months ago

@Hugal31 as I know, deref doesn't work for trait implementation