Matthias Beyer
f8db1273e7
Export MapErrInto as well here
2016-09-05 16:15:54 +02:00
Matthias Beyer
ccffeb91a2
Remove StoreId::is_in_collection(), add StoreId::local()
...
Having a ::is_in_collection() is a nice thing, though it is _way_ better
if we just give the user of the `StoreId` object access to the local
part of the ID.
Using this new function, one can do all the actions one might need on
the Path for the actual entry without nasty copying or such.
`StoreId::is_in_collection()` can be replaced by
`StoreId::local().starts_with()` and everything is fine, as we do not
have to move a `PathBuf` object into the function anymore.
2016-09-04 10:40:38 +02:00
Matthias Beyer
3c31854e66
Use new StoreId::is_in_collection() interface
2016-09-02 17:17:41 +02:00
Matthias Beyer
8563e0d4fc
Reimplement IsInDiary for StoreId with StoreId::is_in_collection()
2016-08-31 09:21:06 +02:00
Matthias Beyer
82f08c6021
Remove version argument from module_entry_path_mod!() macro
2016-08-30 11:40:56 +02:00
Matthias Beyer
ff89111d47
Fix libimagdiary::{diaryid, diary, is_in_diary}::* for new StoreId interface
2016-08-28 18:41:56 +02:00
Matthias Beyer
4614b9d430
Use libimagentryedit instead of libimagrt
2016-08-09 15:47:56 +02:00
Matthias Beyer
99612b4ecc
Replace unwrap with match
2016-08-04 14:15:34 +02:00
Matthias Beyer
669b5a936a
Replace unwrap() with match
2016-08-04 14:13:09 +02:00
Matthias Beyer
1872dcd5e6
Replace unwrap() with match
2016-08-04 14:12:42 +02:00
Matthias Beyer
9337a14cdd
Update all version strings: 0.1.0 -> 0.2.0
2016-07-12 11:51:20 +02:00
Matthias Beyer
4a134144d1
Add debugging in lib-iter
2016-06-09 15:41:42 +02:00
Matthias Beyer
c5beb34614
Add dependencies
2016-06-09 15:41:42 +02:00
Matthias Beyer
b68bd7ef8e
Impl Display for DiaryId
2016-06-08 19:36:13 +02:00
Matthias Beyer
de9d933a6b
Add DiaryId::now(name) to create DiaryId at current time
2016-06-08 13:59:41 +02:00
Matthias Beyer
857daa1c99
Add Diary::name() getter
2016-06-08 13:59:41 +02:00
Matthias Beyer
ecba4e670f
Add Diary::new_entry_by_id()
...
to generate a new entry from a DiaryId object.
Rewrite Diary::new_entry_today() to use this new functionality for more
DRY code.
2016-06-08 13:59:41 +02:00
Matthias Beyer
7c50dd88b5
Impl Default for DiaryId
2016-06-08 13:59:41 +02:00
Matthias Beyer
b04b6e3d24
Add setters for DiaryId type
2016-06-08 13:59:41 +02:00
Matthias Beyer
dc07abdd72
Fix Into<String> for DiaryId to contain padding zeroes
2016-06-07 20:02:18 +02:00
Matthias Beyer
a29ea121a0
Reimplement FromStoreId::from_storeid() for DiaryId
2016-06-07 20:02:18 +02:00
Matthias Beyer
0318117b6c
Add missing imports
2016-06-04 15:34:02 +02:00
Matthias Beyer
14a4b786e8
Enable lints
2016-06-04 15:34:02 +02:00
Matthias Beyer
ef86c5e1ff
Add config module
2016-06-04 15:34:02 +02:00
Matthias Beyer
0363a6a4d4
Add Diary type
2016-06-04 15:34:02 +02:00
Matthias Beyer
97c710baf8
Add modules in lib.rs
2016-06-04 15:34:02 +02:00
Matthias Beyer
2f3a52b2ab
Add IsInDiary trait
2016-06-04 15:34:02 +02:00
Matthias Beyer
f1be77081c
Add diary iterator
2016-06-04 15:34:02 +02:00
Matthias Beyer
6067ccb46a
Add result module
2016-06-04 15:34:02 +02:00
Matthias Beyer
fa370facf3
Add error module
2016-06-04 15:34:02 +02:00
Matthias Beyer
735fcc93c5
Add Entry type
2016-06-04 15:34:02 +02:00
Matthias Beyer
41f0f63c67
Add DiaryId type
2016-06-04 15:34:02 +02:00
Matthias Beyer
243aeb5e72
Add dependencies
2016-06-04 15:34:02 +02:00
Matthias Beyer
6f31e0f821
libimagdiary: init
2016-06-04 15:34:02 +02:00