pub struct SizeRoute {
pub min_size: usize,
pub max_size: Option<usize>,
pub preferred_allocator: AllocatorType,
pub fallback_allocator: Option<AllocatorType>,
}Expand description
Size-based routing rule
Fields§
§min_size: usize§max_size: Option<usize>§preferred_allocator: AllocatorType§fallback_allocator: Option<AllocatorType>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeRoute
impl RefUnwindSafe for SizeRoute
impl Send for SizeRoute
impl Sync for SizeRoute
impl Unpin for SizeRoute
impl UnsafeUnpin for SizeRoute
impl UnwindSafe for SizeRoute
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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