Comments (1)
Yes, unsafe funcions don't implement Fn
.
One solution could be to switch whole API to using fn
, but it lacks some first class citizenshipness. For example you can't implement a trait for fn item and you can't cast fn item to fn pointer without manually writing its signature. Also fn pointers are not unique, two functions can have the same address.
from mocktopus.
Related Issues (20)
- Mocks closures respect no lifetime constraints HOT 3
- Update docs HOT 1
- Migrate to Rust 2018 HOT 1
- investigate multithreaded mocks
- Document behavior when calling function recursively from inside of its mock
- Add way to verify all mocks were called HOT 1
- cargo test --release SIGILL with newest toolchain.
- Not able to mock impl Future function
- Does mocktopus support mocking on method in different crate? HOT 3
- Request feature to verify mock is called by exact number of times and in certain sequence? HOT 2
- Link half-broken HOT 1
- cannot find attribute `mockable` in this scope HOT 1
- Async method taking a reference argument fails to compile
- Async method taking a reference as first parameter fails
- Can't mock universal types
- Can't compile after updating to 0.7.11 from 0.7.5 HOT 1
- Mock `std` functions? HOT 3
- Consider renaming mock_safe to mock
- Compilation failure with latest nightly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mocktopus.