Skip to content

Commit 6deeb1e

Browse files
Structural changes
1 parent ef93dce commit 6deeb1e

File tree

11 files changed

+971
-1
lines changed

11 files changed

+971
-1
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ Cargo.lock
88

99
# These are backup files generated by rustfmt
1010
**/*.rs.bk
11+
12+
13+
# Added by cargo
14+
#
15+
# already existing elements were commented out
16+
17+
/target
18+
#Cargo.lock

CODE_OF_CONDUCT.md

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
* Accepting and using the preferred gender pronouns of all people who have specified them involved in the project.
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or
32+
advances of any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email
36+
address, without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces, and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official e-mail address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement by emailing
64+
`dudochkin.victor@gmail.com`.
65+
All complaints will be reviewed and investigated promptly and fairly.
66+
67+
All community leaders are obligated to respect the privacy and security of the
68+
reporter of any incident.
69+
70+
## Enforcement Guidelines
71+
72+
Community leaders will follow these Community Impact Guidelines in determining
73+
the consequences for any action they deem in violation of this Code of Conduct:
74+
75+
### 1. Correction
76+
77+
**Community Impact**: Use of inappropriate language or other behavior deemed
78+
unprofessional or unwelcome in the community.
79+
80+
**Consequence**: A private, written warning from community leaders, providing
81+
clarity around the nature of the violation and an explanation of why the
82+
behavior was inappropriate. A public apology may be requested.
83+
84+
### 2. Warning
85+
86+
**Community Impact**: A violation through a single incident or series
87+
of actions.
88+
89+
**Consequence**: A warning with consequences for continued behavior. No
90+
interaction with the people involved, including unsolicited interaction with
91+
those enforcing the Code of Conduct, for a specified period of time. This
92+
includes avoiding interactions in community spaces as well as external channels
93+
like social media. Violating these terms may lead to a temporary or
94+
permanent ban.
95+
96+
### 3. Temporary Ban
97+
98+
**Community Impact**: A serious violation of community standards, including
99+
sustained inappropriate behavior.
100+
101+
**Consequence**: A temporary ban from any sort of interaction or public
102+
communication with the community for a specified period of time. No public or
103+
private interaction with the people involved, including unsolicited interaction
104+
with those enforcing the Code of Conduct, is allowed during this period.
105+
Violating these terms may lead to a permanent ban.
106+
107+
### 4. Permanent Ban
108+
109+
**Community Impact**: Demonstrating a pattern of violation of community
110+
standards, including sustained inappropriate behavior, harassment of an
111+
individual, or aggression toward or disparagement of classes of individuals.
112+
113+
**Consequence**: A permanent ban from any sort of public interaction within
114+
the community.
115+
116+
## Attribution
117+
118+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119+
version 2.0, available at
120+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
121+
122+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
123+
enforcement ladder](https://github.com/mozilla/diversity).
124+
125+
[homepage]: https://www.contributor-covenant.org
126+
127+
For answers to common questions about this code of conduct, see the FAQ at
128+
https://www.contributor-covenant.org/faq. Translations are available at
129+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributing to Angular Rust
2+
3+
Want to contribute to Angular Rust? There are a few things you need to know.
4+
5+
We wrote a **[contribution guide](https://angular-rust.github.io/contributing/)** to help you get started.

Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "ux-dataflow"
3+
version = "0.1.0"
4+
authors = ["Victor Dudochkin <dudochkin.victor@gmail.com>", "Maksim Makarov <pr0n1x@yandex.ru>"]
5+
readme = "README.md"
6+
homepage = "https://angular-rust.github.io/ux-dataflow"
7+
repository = "https://github.com/angular-rust/ux-dataflow"
8+
documentation = "https://docs.rs/ux-dataflow"
9+
description = "Data Processing Library"
10+
keywords = ["datatable", "dataframe", "datastream", "data-structures"]
11+
categories = ["data-structures"]
12+
edition = "2018"
13+
license = "MPL-2.0"
14+
15+
[badges]
16+
maintenance = { status = "actively-developed" }
17+
18+
[dependencies]
19+
intmap = "0.7"

README.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,49 @@
1-
# ux-dataflow
1+
# UX DataFlow
2+
3+
[![API Docs][docrs-badge]][docrs-url]
4+
[![Crates.io][crates-badge]][crates-url]
5+
[![MPL-2.0 licensed][license-badge]][license-url]
6+
[![Gitter chat][gitter-badge]][gitter-url]
7+
[![Rustc Version 1.45+][rust-badge]][rust-url]
8+
9+
[docrs-badge]: https://img.shields.io/docsrs/ux-dataflow?style=flat-square
10+
[docrs-url]: https://docs.rs/ux-dataflow/
11+
[crates-badge]: https://img.shields.io/crates/v/ux-dataflow.svg?style=flat-square
12+
[crates-url]: https://crates.io/crates/ux-dataflow
13+
[license-badge]: https://img.shields.io/badge/license-MPL--2.0-blue.svg?style=flat-square
14+
[license-url]: https://github.com/angular-rust/ux-dataflow/blob/master/LICENSE
15+
[gitter-badge]: https://img.shields.io/gitter/room/angular_rust/angular_rust.svg?style=flat-square
16+
[gitter-url]: https://gitter.im/angular_rust/angular_rust
17+
[rust-badge]: https://img.shields.io/badge/rustc-1.45-lightgrey.svg?style=flat-square
18+
[rust-url]: https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html
19+
20+
Angular Rust is a high productivity, frontend web framework for the [Rust language](https://www.rust-lang.org/).
21+
22+
Current Version: 0.1.0 (2021-03-01)
23+
24+
## Quick Start
25+
26+
Install Angular Rust:
27+
28+
cargo add ux-dataflow
29+
30+
## Community
31+
32+
* [Gitter](https://gitter.im/angular_rust/community)
33+
* [StackOverflow](https://stackoverflow.com/questions/tagged/angular-rust)
34+
35+
36+
## Learn More
37+
38+
* [Manual, Samples, Docs, etc](https://angular-rust.github.io/)
39+
* [Apps using Angular Rust](https://github.com/angular-rust/ux-dataflow/wiki/Apps-in-the-Wild)
40+
* [Articles Featuring Angular Rust](https://github.com/angular-rust/ux-dataflow/wiki/Articles)
41+
42+
## Bugs ##
43+
If you find an issue, let me know [here](https://github.com/angular-rust/ux-dataflow/issues/new).
44+
45+
## Contributing
46+
I openly welcome community contributions, including bug fixes and new features. Please feel free to [fork the project](https://github.com/angular-rust/ux-dataflow/fork) and submit a pull request.
47+
48+
* [Contributing Code Guidelines](https://github.com/angular-rust/ux-dataflow/blob/main/CONTRIBUTING.md)
49+
* [Angular Rust Contributors](https://github.com/angular-rust/ux-dataflow/graphs/contributors)

SECURITY.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Security Policy
2+
3+
If you believe you have found a security vulnerability in Angular Rust, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem.
4+
5+
## Reporting a Vulnerability
6+
7+
To report a security vulnerability, please create a Github issue [here](https://github.com/angular-rust/ux-dataflow/issues/new).
8+
9+
If you can, please include the following details:
10+
* An MCVE (minimum complete verifiable example) – this is a short code snippet which demonstrates the error in the
11+
the simplest possible (or just a simple) way.
12+
* Which versions of Angular Rust the vulnerability is present in
13+
* What effects the vulnerability has and how serious the vulnerability is

TODO.md

Whitespace-only changes.

src/collection.rs

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
use std::fmt;
2+
3+
use super::TableEntity;
4+
5+
// class DataCollectionIterator<E extends TableEntity> implements Iterator<E> {
6+
// let DataCollectionBase<E> iterable;
7+
// let i64 length;
8+
// i64 index;
9+
// E current;
10+
11+
// DataCollectionIterator(DataCollectionBase<E> iterable)
12+
// : iterable = iterable,
13+
// length = iterable.length,
14+
// index = 0;
15+
16+
// E get current => current;
17+
18+
// bool moveNext() {
19+
// i64 length = iterable.length;
20+
// if (length != length) {
21+
// throw ConcurrentModificationError(iterable);
22+
// }
23+
// if (index >= length) {
24+
// current = null;
25+
// return false;
26+
// }
27+
// current = iterable.elementAt(index);
28+
// index++;
29+
// return true;
30+
// }
31+
// }
32+
33+
trait DataCollectionBase<E>
34+
where
35+
E: TableEntity,
36+
{
37+
fn release_items(&self, start: i64, end: i64);
38+
39+
fn update_items(&self, start: i64);
40+
41+
// fn get_iterator() -> Iterator<E> => DataCollectionIterator<E>(this);
42+
43+
// fn first() -> E => base.first;
44+
45+
// fn last() -> E => base.last;
46+
47+
// fn single() -> E => base.single;
48+
49+
// fn get_length() -> usize => base.length;
50+
51+
// fn set length(&self, i64 value);
52+
53+
// E operator [](i64 index) => base[index];
54+
55+
// operator []=(i64 index, E value) {
56+
// // TODO: implement.
57+
// throw UnimplementedError();
58+
// }
59+
60+
fn add(&self, value: E);
61+
62+
// fn add_all(&self, iterable: Iterator<E>);
63+
64+
// fn elementAt(&self, i64 index) -> E;
65+
66+
fn insert(&self, index: i64, value: E);
67+
68+
// fn insert_all(&self, index: i64, iterable: Iterable<E>);
69+
70+
fn remove(&self, element: E) -> bool;
71+
72+
fn clear(&self);
73+
74+
fn remove_at(&self, index: i64) -> E;
75+
76+
fn remove_last(&self) -> E;
77+
78+
fn remove_range(&self, start: i64, end: i64);
79+
}

0 commit comments

Comments
 (0)