pub enum QueueSize {
Limitless,
Limited(usize),
}Expand description
The size of the queue.
キューのサイズ。
Variants§
Limitless
The queue has no capacity limit.
キューに容量制限がない。
Limited(usize)
The queue has a capacity limit.
キューに容量制限がある。
Implementations§
Source§impl QueueSize
impl QueueSize
Sourcepub fn is_limitless(&self) -> bool
pub fn is_limitless(&self) -> bool
Returns whether the queue has no capacity limit.
キューに容量制限がないかどうかを返します。
§Return Value / 戻り値
true- If the queue has no capacity limit. / キューに容量制限がない場合。false- If the queue has a capacity limit. / キューに容量制限がある場合。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueueSize
impl RefUnwindSafe for QueueSize
impl Send for QueueSize
impl Sync for QueueSize
impl Unpin for QueueSize
impl UnsafeUnpin for QueueSize
impl UnwindSafe for QueueSize
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