pub struct MarkBox {
pub rect: ImageRect,
pub label: String,
}Expand description
One rectangle plus its human-readable label.
label is what the user sees inside the box. The protocol decides whether
to use a tree index, an oN OCR index, or ? when an index is not yet
known. Keep label short — at most two characters fit at the default size.
Fields§
§rect: ImageRectImage pixel rectangle (top-left inclusive).
label: StringHuman-readable label drawn in the box.
Trait Implementations§
impl Eq for MarkBox
impl StructuralPartialEq for MarkBox
Auto Trait Implementations§
impl Freeze for MarkBox
impl RefUnwindSafe for MarkBox
impl Send for MarkBox
impl Sync for MarkBox
impl Unpin for MarkBox
impl UnsafeUnpin for MarkBox
impl UnwindSafe for MarkBox
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.