pub struct ContentInputs { /* private fields */ }Expand description
Binary inputs found by pure code — the images an importer met — keyed by address, for the
caller to persist (ContentStore::put_inputs) before the document naming them is kept.
Implementations§
Source§impl ContentInputs
impl ContentInputs
pub fn new() -> Self
Sourcepub fn add(&mut self, bytes: impl Into<Vec<u8>>) -> String
pub fn add(&mut self, bytes: impl Into<Vec<u8>>) -> String
Take bytes as an input, returning their address. The same bytes added twice are kept once.
pub fn get(&self, hash: &str) -> Option<&[u8]>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&str, &[u8])>
pub fn append(&mut self, other: &mut Self)
Trait Implementations§
Source§impl Clone for ContentInputs
impl Clone for ContentInputs
Source§impl ContentSource for ContentInputs
impl ContentSource for ContentInputs
Source§impl Debug for ContentInputs
impl Debug for ContentInputs
Source§impl Default for ContentInputs
impl Default for ContentInputs
impl Eq for ContentInputs
Source§impl IntoIterator for ContentInputs
impl IntoIterator for ContentInputs
Source§impl PartialEq for ContentInputs
impl PartialEq for ContentInputs
impl StructuralPartialEq for ContentInputs
Auto Trait Implementations§
impl Forget for ContentInputs
impl Freeze for ContentInputs
impl Move for ContentInputs
impl RefUnwindSafe for ContentInputs
impl Send for ContentInputs
impl Sync for ContentInputs
impl Unpin for ContentInputs
impl UnsafeUnpin for ContentInputs
impl UnwindSafe for ContentInputs
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