INNER CODE UNIT · Rust
map_bound
spacejam/sled · src/lib.rs:385
fn map_bound<T, U, F: FnOnce(T) -> U>(bound: Bound<T>, f: F) -> Bound<U> {
match bound {
Bound::Unbounded => Bound::Unbounded,
Bound::Included(x) => Bound::Included(f(x)),
Bound::Excluded(x) => Bound::Excluded(f(x)),
}
}
const fn _assert_public_types_send_sync() {
use std::fmt::Debug;
const fn _assert_send<S: Send + Clone + Debug>() {}
const fn _assert_send_sync<S: Send + Sync + Clone + Debug>() {}
/*
_assert_send::<Subscriber>();
_assert_send_sync::<Event>();