pub struct ModuleSpace { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for ModuleSpace
impl Debug for ModuleSpace
Source§impl Display for ModuleSpace
impl Display for ModuleSpace
Source§impl Space for ModuleSpace
impl Space for ModuleSpace
Source§fn atom_count(&self) -> Option<usize>
fn atom_count(&self) -> Option<usize>
Returns the number of Atoms in the space, or None if this can’t be determined
Source§fn visit(&self, v: &mut dyn SpaceVisitor) -> Result<(), ()>
fn visit(&self, v: &mut dyn SpaceVisitor) -> Result<(), ()>
Visit each atom of the space and call [SpaceVisitor::accept] method.
This method is optional. Return
Err(()) if method is not implemented.
Cow<Atom> is used to allow passing both references and values. First
is appropriate for collection based atomspace. Second one is more
usable if atomspace is a generator or when values cannot be extracted
easily and should be reconstructed instead.Source§impl SpaceMut for ModuleSpace
impl SpaceMut for ModuleSpace
Source§fn remove(&mut self, atom: &Atom) -> bool
fn remove(&mut self, atom: &Atom) -> bool
Removes
atom from space. Returns true if atom was found and removed,
and false otherwise. Read moreSource§fn replace(&mut self, from: &Atom, to: Atom) -> bool
fn replace(&mut self, from: &Atom, to: Atom) -> bool
Replaces
from atom to to atom inside space. Doesn’t add to when
from is not found. Returns true if atom was found and replaced, and
false otherwise. Read moreSource§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns an
&mut dyn Any for spaces where this is possibleAuto Trait Implementations§
impl Freeze for ModuleSpace
impl !RefUnwindSafe for ModuleSpace
impl !Send for ModuleSpace
impl !Sync for ModuleSpace
impl Unpin for ModuleSpace
impl !UnwindSafe for ModuleSpace
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request