re_types/blueprint/components/
view_maximized.rs

1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/rust/api.rs
2// Based on "crates/store/re_types/definitions/rerun/blueprint/components/view_maximized.fbs".
3
4#![allow(unused_braces)]
5#![allow(unused_imports)]
6#![allow(unused_parens)]
7#![allow(clippy::allow_attributes)]
8#![allow(clippy::clone_on_copy)]
9#![allow(clippy::cloned_instead_of_copied)]
10#![allow(clippy::map_flatten)]
11#![allow(clippy::needless_question_mark)]
12#![allow(clippy::new_without_default)]
13#![allow(clippy::redundant_closure)]
14#![allow(clippy::too_many_arguments)]
15#![allow(clippy::too_many_lines)]
16#![allow(clippy::wildcard_imports)]
17
18use ::re_types_core::SerializationResult;
19use ::re_types_core::try_serialize_field;
20use ::re_types_core::{ComponentBatch as _, SerializedComponentBatch};
21use ::re_types_core::{ComponentDescriptor, ComponentType};
22use ::re_types_core::{DeserializationError, DeserializationResult};
23
24/// **Component**: Whether a view is maximized.
25///
26/// ⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
27#[derive(Clone, Debug, Default)]
28pub struct ViewMaximized(pub crate::datatypes::Uuid);
29
30impl ::re_types_core::WrapperComponent for ViewMaximized {
31    type Datatype = crate::datatypes::Uuid;
32
33    #[inline]
34    fn name() -> ComponentType {
35        "rerun.blueprint.components.ViewMaximized".into()
36    }
37
38    #[inline]
39    fn into_inner(self) -> Self::Datatype {
40        self.0
41    }
42}
43
44::re_types_core::macros::impl_into_cow!(ViewMaximized);
45
46impl<T: Into<crate::datatypes::Uuid>> From<T> for ViewMaximized {
47    fn from(v: T) -> Self {
48        Self(v.into())
49    }
50}
51
52impl std::borrow::Borrow<crate::datatypes::Uuid> for ViewMaximized {
53    #[inline]
54    fn borrow(&self) -> &crate::datatypes::Uuid {
55        &self.0
56    }
57}
58
59impl std::ops::Deref for ViewMaximized {
60    type Target = crate::datatypes::Uuid;
61
62    #[inline]
63    fn deref(&self) -> &crate::datatypes::Uuid {
64        &self.0
65    }
66}
67
68impl std::ops::DerefMut for ViewMaximized {
69    #[inline]
70    fn deref_mut(&mut self) -> &mut crate::datatypes::Uuid {
71        &mut self.0
72    }
73}
74
75impl ::re_byte_size::SizeBytes for ViewMaximized {
76    #[inline]
77    fn heap_size_bytes(&self) -> u64 {
78        self.0.heap_size_bytes()
79    }
80
81    #[inline]
82    fn is_pod() -> bool {
83        <crate::datatypes::Uuid>::is_pod()
84    }
85}