Carsten Kragelund
920589ac15
Rust: Test to verify existence of colour methods
...
We only need to test one flavour, as we just need to make sure the
methods exists because if the correct method exists it is guaurenteed to
access to correctly named field
2022-10-27 00:24:59 +02:00
Carsten Kragelund
8f885d4339
Rust: Add methods to Flavour
to get each colour
...
This adds method to get each of the colors directly from the `Flavour`
variants like so
```rust
Flavour::Latte.teal()
```
rather than needing to go through the `FlavourColours` struct
This closes #27
2022-10-26 23:47:08 +02:00
Carsten Kragelund
468da426f5
Rust: Fix tests after changing into_iter
2022-10-26 22:39:45 +01:00
Carsten Kragelund
e38a36cb55
Rust: Fix capitalisation of Catppuccin in docs
2022-10-26 22:11:30 +01:00
Carsten Kragelund
1684c22392
Rust: impl IntoIterator
for FlavourColours
...
This moves the `into_iter` method into the `IntoIterator` trait
implementation and switches to using values instead of references
Closes #28
2022-10-26 22:11:30 +01:00
Carsten Kragelund
b27829caea
Rust: Rename Palette
to FlavourColours
...
Plus run `rustfmt`
Closes #26
2022-10-26 22:11:30 +01:00
Gingeh
41035e40cd
rename and relocate iter methods
...
Co-authored-by: backwardspy <backwardspy@gmail.com>
Co-authored-by: Carsten Kragelund <carsten@kragelund.dev>
2022-10-24 05:13:09 -07:00
Gingeh
309790a80f
refactor: move flavours into enum
2022-10-24 05:13:09 -07:00
backwardspy
ee21b0598c
docs: add webp rust example assets
2022-10-23 23:36:37 +01:00
backwardspy
ade9d587cf
fix: broken repo link in rust crate
2022-10-23 23:36:20 +01:00
backwardspy
06c7415e6c
chore: bump crate version number
2022-10-23 22:21:35 +01:00
backwardspy
0c9955f05e
docs: use crate version in doc comment, add example outputs
2022-10-23 20:09:58 +01:00
backwardspy
6d8a72071d
feat: add rust crate
2022-10-23 16:48:40 +01:00