set-rust-crate
Provide a `set!` macro that creates a new map collection then inserts key-value pairs.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (2.9%) to scientific vocabulary
Repository
Provide a `set!` macro that creates a new map collection then inserts key-value pairs.
Basic Info
- Host: GitHub
- Owner: SixArm
- Language: Rust
- Default Branch: main
- Size: 1000 Bytes
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
set! macro Rust crate
This crate provides set! macros to create set collections and
insert elements. This is inspired by the vec! macro.
set! macro
Create a new set collection and insert elements.
Example with tuple syntax:
rust
let m = set!((1, 2), (3, 4));
Example with arrow syntax:
rust
let m = set!(1 => 2, 3 => 4);
Equivalent Rust standard code:
rust
let mut m = HashSet::new();
m.insert(1, 2);
m.insert(3, 4);
set_insert! macro
Use an existing set collection and insert elements.
Example with tuple syntax:
rust
let mut m = HashSet::new();
set_insert!(m, (1, 2), (3, 4));
Example with arrow syntax:
rust
let mut m = HashSet::new();
set_insert!(m, 1 => 2, 3 => 4);
Equivalent Rust std code with method insert`:
rust
let mut m = HashSet::new();
m.insert(1, 2);
m.insert(3, 4);
Owner
- Name: SixArm
- Login: SixArm
- Kind: organization
- Email: sixarm@sixarm.com
- Location: San Francisco
- Website: http://sixarm.com
- Twitter: sixarm
- Repositories: 580
- Profile: https://github.com/SixArm
SixArm Software
Citation (CITATION.cff)
cff-version: 1.2.0
title: set! macro Rust crate
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel@joelparkerhenderson.com
affiliation: joelparkerhenderson.com
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/SixArm/set-rust-crate/'
description: set! macro Rust crate
repository-code: 'https://github.com/SixArm/set-rust-crate/'
abstract: >-
set! macro Rust crate
license: See license file
GitHub Events
Total
- Watch event: 3
- Push event: 1
- Create event: 2
Last Year
- Watch event: 3
- Push event: 1
- Create event: 2