pub struct OutputSet { /* private fields */ }Expand description
Outputs in order, keyed by path: OutputSet::put replaces a path’s
output (moving it to the end) without rescanning the list.
Implementations§
Source§impl OutputSet
impl OutputSet
pub fn get(&self, path: &str) -> Option<&[u8]>
pub fn contains(&self, path: &str) -> bool
pub fn paths(&self) -> impl Iterator<Item = &String>
Sourcepub fn put(&mut self, path: String, bytes: Vec<u8>)
pub fn put(&mut self, path: String, bytes: Vec<u8>)
Sets path’s output, dropping the one it had.
pub fn into_vec(self) -> Vec<Output> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutputSet
impl RefUnwindSafe for OutputSet
impl Send for OutputSet
impl Sync for OutputSet
impl Unpin for OutputSet
impl UnsafeUnpin for OutputSet
impl UnwindSafe for OutputSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more