pub struct LabelInfo {
pub label_id: i32,
pub name: String,
pub has_color: bool,
pub r: f64,
pub g: f64,
pub b: f64,
pub is_assembly: bool,
pub is_component: bool,
pub shape_id: u32,
}Expand description
XCAF document label information.
Fields§
§label_id: i32Label ID within the document.
name: StringLabel name.
has_color: boolWhether this label has a color assigned.
r: f64Red component (0.0-1.0).
g: f64Green component (0.0-1.0).
b: f64Blue component (0.0-1.0).
is_assembly: boolWhether this label represents an assembly.
is_component: boolWhether this label represents a component instance.
shape_id: u32Shape handle ID (0 if no shape).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LabelInfo
impl RefUnwindSafe for LabelInfo
impl Send for LabelInfo
impl Sync for LabelInfo
impl Unpin for LabelInfo
impl UnsafeUnpin for LabelInfo
impl UnwindSafe for LabelInfo
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