pub struct PolypLabel {
pub center_world: [f32; 3],
pub bbox_px: Option<[f32; 4]>,
pub bbox_norm: Option<[f32; 4]>,
}Fields§
§center_world: [f32; 3]§bbox_px: Option<[f32; 4]>§bbox_norm: Option<[f32; 4]>Implementations§
Source§impl PolypLabel
impl PolypLabel
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for PolypLabel
impl Clone for PolypLabel
Source§fn clone(&self) -> PolypLabel
fn clone(&self) -> PolypLabel
Returns a duplicate 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 PolypLabel
impl Debug for PolypLabel
Source§impl<'de> Deserialize<'de> for PolypLabel
impl<'de> Deserialize<'de> for PolypLabel
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
Auto Trait Implementations§
impl Freeze for PolypLabel
impl RefUnwindSafe for PolypLabel
impl Send for PolypLabel
impl Sync for PolypLabel
impl Unpin for PolypLabel
impl UnwindSafe for PolypLabel
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