#![allow(unused_braces)]
#![allow(unused_imports)]
#![allow(unused_parens)]
#![allow(clippy::allow_attributes)]
#![allow(clippy::clone_on_copy)]
#![allow(clippy::cloned_instead_of_copied)]
#![allow(clippy::map_flatten)]
#![allow(clippy::needless_question_mark)]
#![allow(clippy::new_without_default)]
#![allow(clippy::redundant_closure)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::too_many_lines)]
#![allow(clippy::wildcard_imports)]
use ::re_types_core::SerializationResult;
use ::re_types_core::try_serialize_field;
use ::re_types_core::{ComponentBatch as _, SerializedComponentBatch};
use ::re_types_core::{ComponentDescriptor, ComponentType};
use ::re_types_core::{DeserializationError, DeserializationResult};
#[derive(Clone, Debug, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[repr(transparent)]
pub struct Visible(pub crate::datatypes::Bool);
impl ::re_types_core::WrapperComponent for Visible {
type Datatype = crate::datatypes::Bool;
#[inline]
fn name() -> ComponentType {
"rerun.components.Visible".into()
}
#[inline]
fn into_inner(self) -> Self::Datatype {
self.0
}
}
::re_types_core::macros::impl_into_cow!(Visible);
impl<T: Into<crate::datatypes::Bool>> From<T> for Visible {
fn from(v: T) -> Self {
Self(v.into())
}
}
impl std::borrow::Borrow<crate::datatypes::Bool> for Visible {
#[inline]
fn borrow(&self) -> &crate::datatypes::Bool {
&self.0
}
}
impl std::ops::Deref for Visible {
type Target = crate::datatypes::Bool;
#[inline]
fn deref(&self) -> &crate::datatypes::Bool {
&self.0
}
}
impl std::ops::DerefMut for Visible {
#[inline]
fn deref_mut(&mut self) -> &mut crate::datatypes::Bool {
&mut self.0
}
}
impl ::re_byte_size::SizeBytes for Visible {
#[inline]
fn heap_size_bytes(&self) -> u64 {
self.0.heap_size_bytes()
}
#[inline]
fn is_pod() -> bool {
<crate::datatypes::Bool>::is_pod()
}
}