Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.
/ tor.rs Public archive

A reimplementation of the `vec!` macro using syntax extensions

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

japaric-archived/tor.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tor.rs

A reimplementation of the vec! macro using syntax extensions.

tor!($SOMETHING) expands into:

{
    use std::slice::BoxedSlice;
    use std::boxed::HEAP;
    let xs = box (HEAP) [$SOMETHING];
    xs.into_vec()
}

For the implementation details, see the expand_tor function in the src/lib.rs file.

You can find a rather minimal test suite in the tests/tor.rs file.

License

tor.rs is dual licensed under the Apache 2.0 license and the MIT license.

See LICENSE-APACHE and LICENSE-MIT for more details.

About

A reimplementation of the `vec!` macro using syntax extensions

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages