pub struct LocalMap { /* private fields */ }Implementations§
Source§impl LocalMap
impl LocalMap
pub fn new() -> Self
pub fn insert( &mut self, hash: Hash, tags_hash: Hash, mangle_hash: Hash, topology: Vec<Hash>, data: Vec<u8>, ) -> Result<()>
pub fn referenced_by( &self, hash: Hash, ) -> Option<impl use<> + Iterator<Item = Hash>>
pub fn remove( &mut self, hash: Hash, ) -> Result<(), impl use<> + Iterator<Item = Hash>>
pub fn get(&self, hash: Hash) -> Option<(&[Hash], &[u8])>
pub fn contains(&self, hash: Hash) -> bool
pub fn to_resolve(&self) -> Arc<dyn Resolve>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Resolve for LocalMap
impl Resolve for LocalMap
Source§fn resolve<'a>(
&'a self,
address: Address,
this: &'a Arc<dyn Resolve>,
) -> FailFuture<'a, ByteNode>
fn resolve<'a>( &'a self, address: Address, this: &'a Arc<dyn Resolve>, ) -> FailFuture<'a, ByteNode>
Resolve the address. For an
Object, this is what gets used as PointInput.fn resolve_data(&self, address: Address) -> FailFuture<'_, Vec<u8>>
fn try_resolve_local( &self, address: Address, this: &Arc<dyn Resolve>, ) -> Result<Option<ByteNode>>
Source§fn resolve_extension(
&self,
address: Address,
typeid: TypeId,
) -> Result<&(dyn Any + 'static), Error>
fn resolve_extension( &self, address: Address, typeid: TypeId, ) -> Result<&(dyn Any + 'static), Error>
Get a dynamic extension for a specific
Address.Source§fn extension(&self, typeid: TypeId) -> Result<&(dyn Any + 'static), Error>
fn extension(&self, typeid: TypeId) -> Result<&(dyn Any + 'static), Error>
Get a dynamic extension.
fn topology_hash(&self) -> Option<Hash>
fn into_topovec(self: Arc<Self>) -> Option<Vec<Arc<dyn Singular>>>
Auto Trait Implementations§
impl Freeze for LocalMap
impl RefUnwindSafe for LocalMap
impl Send for LocalMap
impl Sync for LocalMap
impl Unpin for LocalMap
impl UnsafeUnpin for LocalMap
impl UnwindSafe for LocalMap
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
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