castaway | cost downcasting for limited compile
kandi X-RAY | castaway Summary
kandi X-RAY | castaway Summary
castaway is a Rust library. castaway has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
This is an experimental library that implements zero-cost downcasting of types that works on stable Rust. It began as a thought experiment after I had read this pull request and wondered if it would be possible to alter the behavior of a generic function based on a concrete type without using trait objects. I stumbled on the "zero-cost"-ness of my findings by accident while playing around with different implementations and examining the generated assembly of example programs. The API is somewhat similar to Any in the standard library, but Castaway is instead focused on ergonomic compile-time downcasting rather than runtime downcasting. Unlike Any, Castaway does support safely casting non-'static references in limited scenarios. If you need to store one or more Box objects implementing some trait with the option of downcasting, you are much better off using Any.
This is an experimental library that implements zero-cost downcasting of types that works on stable Rust. It began as a thought experiment after I had read this pull request and wondered if it would be possible to alter the behavior of a generic function based on a concrete type without using trait objects. I stumbled on the "zero-cost"-ness of my findings by accident while playing around with different implementations and examining the generated assembly of example programs. The API is somewhat similar to Any in the standard library, but Castaway is instead focused on ergonomic compile-time downcasting rather than runtime downcasting. Unlike Any, Castaway does support safely casting non-'static references in limited scenarios. If you need to store one or more Box objects implementing some trait with the option of downcasting, you are much better off using Any.
Support
Quality
Security
License
Reuse
Support
castaway has a low active ecosystem.
It has 47 star(s) with 4 fork(s). There are 5 watchers for this library.
It had no major release in the last 12 months.
There are 1 open issues and 1 have been closed. On average issues are closed in 12 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of castaway is 0.2.1
Quality
castaway has no bugs reported.
Security
castaway has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
castaway is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
castaway releases are available to install and integrate.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of castaway
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of castaway
castaway Key Features
No Key Features are available at this moment for castaway.
castaway Examples and Code Snippets
No Code Snippets are available at this moment for castaway.
Community Discussions
No Community Discussions are available at this moment for castaway.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install castaway
You can download it from GitHub.
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page