re_types/blueprint/views/
dataframe_view.rs1#![allow(unused_imports)]
5#![allow(unused_parens)]
6#![allow(clippy::clone_on_copy)]
7#![allow(clippy::cloned_instead_of_copied)]
8#![allow(clippy::map_flatten)]
9#![allow(clippy::needless_question_mark)]
10#![allow(clippy::new_without_default)]
11#![allow(clippy::redundant_closure)]
12#![allow(clippy::too_many_arguments)]
13#![allow(clippy::too_many_lines)]
14
15use ::re_types_core::try_serialize_field;
16use ::re_types_core::SerializationResult;
17use ::re_types_core::{ComponentBatch as _, SerializedComponentBatch};
18use ::re_types_core::{ComponentDescriptor, ComponentName};
19use ::re_types_core::{DeserializationError, DeserializationResult};
20
21#[derive(Clone, Debug)]
27pub struct DataframeView {
28 pub query: crate::blueprint::archetypes::DataframeQuery,
30}
31
32impl ::re_types_core::View for DataframeView {
33 #[inline]
34 fn identifier() -> ::re_types_core::ViewClassIdentifier {
35 "Dataframe".into()
36 }
37}
38
39impl<T: Into<crate::blueprint::archetypes::DataframeQuery>> From<T> for DataframeView {
40 fn from(v: T) -> Self {
41 Self { query: v.into() }
42 }
43}
44
45impl std::borrow::Borrow<crate::blueprint::archetypes::DataframeQuery> for DataframeView {
46 #[inline]
47 fn borrow(&self) -> &crate::blueprint::archetypes::DataframeQuery {
48 &self.query
49 }
50}
51
52impl std::ops::Deref for DataframeView {
53 type Target = crate::blueprint::archetypes::DataframeQuery;
54
55 #[inline]
56 fn deref(&self) -> &crate::blueprint::archetypes::DataframeQuery {
57 &self.query
58 }
59}
60
61impl std::ops::DerefMut for DataframeView {
62 #[inline]
63 fn deref_mut(&mut self) -> &mut crate::blueprint::archetypes::DataframeQuery {
64 &mut self.query
65 }
66}
67
68impl ::re_byte_size::SizeBytes for DataframeView {
69 #[inline]
70 fn heap_size_bytes(&self) -> u64 {
71 self.query.heap_size_bytes()
72 }
73
74 #[inline]
75 fn is_pod() -> bool {
76 <crate::blueprint::archetypes::DataframeQuery>::is_pod()
77 }
78}