Struct rvlib::tools_data::bbox_data::BboxSpecificData
source · pub struct BboxSpecificData {
pub new_label: String,
pub cat_idx_current: usize,
pub clipboard: Option<ClipboardData>,
pub options: Options,
pub coco_file: CocoFile,
/* private fields */
}Fields§
§new_label: String§cat_idx_current: usize§clipboard: Option<ClipboardData>§options: Options§coco_file: CocoFileImplementations§
source§impl BboxSpecificData
impl BboxSpecificData
pub fn get_annos_mut( &mut self, file_path: &str, shape: Shape ) -> &mut BboxAnnotations
pub fn get_annos(&self, file_path: &str) -> Option<&BboxAnnotations>
pub fn anno_iter_mut( &mut self ) -> impl Iterator<Item = (&String, &mut (BboxAnnotations, Shape))>
pub fn anno_iter( &self ) -> impl Iterator<Item = (&String, &(BboxAnnotations, Shape))>
pub fn anno_intoiter( self ) -> impl Iterator<Item = (String, (BboxAnnotations, Shape))>
pub fn n_annotated_images(&self, paths: &[&str]) -> usize
pub fn from_bbox_export_data(input_data: BboxExportData) -> RvResult<Self>
pub fn remove_catidx(&mut self, cat_idx: usize)
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn find_default(&mut self) -> Option<&mut String>
pub fn push( &mut self, label: String, color: Option<[u8; 3]>, cat_id: Option<u32> ) -> RvResult<()>
pub fn retain_fileannos_in_folder(&mut self, folder: &str)
pub fn colors(&self) -> &Vec<[u8; 3]>
pub fn new_random_colors(&mut self)
pub fn labels(&self) -> &Vec<String>
pub fn cat_ids(&self) -> &Vec<u32>
pub fn new() -> Self
pub fn set_annotations_map(&mut self, map: AnnotationsMap) -> RvResult<()>
Trait Implementations§
source§impl Clone for BboxSpecificData
impl Clone for BboxSpecificData
source§fn clone(&self) -> BboxSpecificData
fn clone(&self) -> BboxSpecificData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BboxSpecificData
impl Debug for BboxSpecificData
source§impl Default for BboxSpecificData
impl Default for BboxSpecificData
source§impl<'de> Deserialize<'de> for BboxSpecificData
impl<'de> Deserialize<'de> for BboxSpecificData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BboxSpecificData
impl PartialEq for BboxSpecificData
source§fn eq(&self, other: &BboxSpecificData) -> bool
fn eq(&self, other: &BboxSpecificData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BboxSpecificData
impl Serialize for BboxSpecificData
impl StructuralPartialEq for BboxSpecificData
Auto Trait Implementations§
impl RefUnwindSafe for BboxSpecificData
impl Send for BboxSpecificData
impl Sync for BboxSpecificData
impl Unpin for BboxSpecificData
impl UnwindSafe for BboxSpecificData
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst>,
Approximate the subject with the default scheme.
source§fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,
Approximate the subject with a specific scheme.
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
source§fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
fn into_as<Dst>(self) -> Dstwhere Self: Sized + Into<Dst>,
Convert the subject to a given type.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.