pub struct API(/* private fields */);Implementations§
Source§impl API
impl API
pub async fn obs_to_abs(&self, obs: Observation) -> Result<Abstraction>
pub async fn metric(&self, street: Street) -> Result<Metric>
Source§impl API
impl API
pub async fn abs_equity(&self, abs: Abstraction) -> Result<Probability>
pub async fn obs_equity(&self, obs: Observation) -> Result<Probability>
Source§impl API
impl API
pub async fn abs_distance( &self, abs1: Abstraction, abs2: Abstraction, ) -> Result<Energy>
pub async fn obs_distance( &self, obs1: Observation, obs2: Observation, ) -> Result<Energy>
Source§impl API
impl API
pub async fn abs_population(&self, abs: Abstraction) -> Result<usize>
pub async fn obs_population(&self, obs: Observation) -> Result<usize>
Source§impl API
impl API
pub async fn abs_histogram(&self, abs: Abstraction) -> Result<Histogram>
pub async fn obs_histogram(&self, obs: Observation) -> Result<Histogram>
Source§impl API
impl API
pub async fn exp_wrt_str(&self, str: Street) -> Result<ApiSample>
pub async fn exp_wrt_obs(&self, obs: Observation) -> Result<ApiSample>
pub async fn exp_wrt_abs(&self, abs: Abstraction) -> Result<ApiSample>
Source§impl API
impl API
pub async fn abs_nearby( &self, abs: Abstraction, ) -> Result<Vec<(Abstraction, Energy)>>
pub async fn obs_nearby( &self, obs: Observation, ) -> Result<Vec<(Abstraction, Energy)>>
Source§impl API
impl API
pub async fn obs_similar(&self, obs: Observation) -> Result<Vec<Observation>>
pub async fn abs_similar(&self, abs: Abstraction) -> Result<Vec<Observation>>
pub async fn replace_obs(&self, obs: Observation) -> Result<Observation>
Source§impl API
impl API
pub async fn nbr_any_wrt_abs(&self, wrt: Abstraction) -> Result<ApiSample>
pub async fn nbr_abs_wrt_abs( &self, wrt: Abstraction, abs: Abstraction, ) -> Result<ApiSample>
pub async fn nbr_obs_wrt_abs( &self, wrt: Abstraction, obs: Observation, ) -> Result<ApiSample>
Source§impl API
impl API
pub async fn kfn_wrt_abs(&self, wrt: Abstraction) -> Result<Vec<ApiSample>>
pub async fn knn_wrt_abs(&self, wrt: Abstraction) -> Result<Vec<ApiSample>>
pub async fn kgn_wrt_abs( &self, wrt: Abstraction, nbr: Vec<Observation>, ) -> Result<Vec<ApiSample>>
Source§impl API
impl API
pub async fn hst_wrt_obs(&self, obs: Observation) -> Result<Vec<ApiSample>>
pub async fn hst_wrt_abs(&self, abs: Abstraction) -> Result<Vec<ApiSample>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for API
impl !RefUnwindSafe for API
impl Send for API
impl Sync for API
impl Unpin for API
impl !UnwindSafe for API
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more