partial_ref - Type checked partial references.
This crate provides type checked partial references for rust. Type checked partial references are one solution to solve interprocedural borrowing conflicts.
Example
use *;
part!;
part!;
part!;
let mut g = default;
let mut g_ref = g.into_partial_ref_mut;
g_ref.part_mut.extend;
g_ref.part_mut.extend;
g_ref.part_mut.push;
g_ref.part_mut.push;
g_ref.part_mut.push;
let = g_ref.split_part_mut;
let = g_ref.split_part;
for in neighbors.iter_mut.zip
Documentation
License
The partial_ref source code is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in partial_ref by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.