Integrate browse API into TUI MB daemon #230
@ -49,13 +49,6 @@ pub struct Paged<T> {
|
|||||||
pub next: NextPage,
|
pub next: NextPage,
|
||||||
}
|
}
|
||||||
|
|
||||||
// pub fn map<U, F: FnOnce(T) -> U>(self, op: F) -> Result<U, E> {
|
|
||||||
// match self {
|
|
||||||
// Ok(t) => Ok(op(t)),
|
|
||||||
// Err(e) => Err(e),
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
impl<T> Paged<T> {
|
impl<T> Paged<T> {
|
||||||
pub fn map_paged_result<E, U, F: FnOnce(T) -> U>(
|
pub fn map_paged_result<E, U, F: FnOnce(T) -> U>(
|
||||||
result: Result<Paged<T>, E>,
|
result: Result<Paged<T>, E>,
|
||||||
|
Loading…
Reference in New Issue
Block a user