∅ч
impl Commit<Request, Response> for reqwest::Client {
fn commit(&self, req: &Request) -> Response { ... }
}
хорошая практика для написания API?
хотя мне кажется надо как-то функцию переименовать, а то проблему будут
Size: a a a
∅ч
impl Commit<Request, Response> for reqwest::Client {
fn commit(&self, req: &Request) -> Response { ... }
}
∅ч
Api1::commit(&client, &request);
Api2::commit(&client, &request;
∅ч
use somecrate::Trait{ commit as somecrate_commit }
∅ч
∅ч
impl Commit<Request, Response> for reqwest::Client {
fn commit(&self, req: &Request) -> Response { ... }
}
∅ч
MB
∅ч
∅ч
∅ч
∅ч
∅ч
∅ч
∅ч
∅ч
∅ч
∅ч
MB
MB
∅ч