MCPcopy Index your code
hub / github.com/endbasic/endbasic / readers

Function readers

std/src/storage/mem.rs:126–128  ·  view source on GitHub ↗

Convenience function to instantiate a `FileAcls` with the `r` readers.

(r: &[&str])

Source from the content-addressed store, hash-verified

124
125 /// Convenience function to instantiate a `FileAcls` with the `r` readers.
126 fn readers(r: &[&str]) -> FileAcls {
127 FileAcls::default().with_readers(r.iter().map(|x| x.to_string()).collect::<Vec<String>>())
128 }
129
130 #[tokio::test]
131 async fn test_inmemorydrive_put_respects_acls() {

Calls 2

with_readersMethod · 0.80
iterMethod · 0.80