pub struct UiOutputView<'a, S, T = &'a str> { /* private fields */ }Available on crate feature
ui only.Expand description
▦ 🍃 A borrowed read-only view over a completed backend-neutral UI frame.
📦 size_of::<UiOutputView<u8, &str>>() == 24 bytes / 192 bits #️⃣ #[cfg(target_pointer_width = “32”)]
⚗️Option<T> 🟰 T
📦 size_of::<UiOutputView<u8, &str>>() == 48 bytes / 384 bits #️⃣ #[cfg(target_pointer_width = “64”)]
⚗️Option<T> 🟰 T
Borrows the frame record streams without taking ownership of their storage.
This is the canonical form intended for backend-neutral presenters.
Implementations§
Source§impl<'a, S, T> UiOutputView<'a, S, T>
impl<'a, S, T> UiOutputView<'a, S, T>
Sourcepub const fn from_parts(
layouts: &'a [LayoutReceipt],
views: &'a [UiView],
draws: UiDrawListView<'a, S, T>,
) -> Self
pub const fn from_parts( layouts: &'a [LayoutReceipt], views: &'a [UiView], draws: UiDrawListView<'a, S, T>, ) -> Self
Constructs a borrowed output view from its three frame record streams.
Sourcepub const fn from_slices(
layouts: &'a [LayoutReceipt],
views: &'a [UiView],
draws: &'a [UiDraw<S, T>],
) -> Self
pub const fn from_slices( layouts: &'a [LayoutReceipt], views: &'a [UiView], draws: &'a [UiDraw<S, T>], ) -> Self
Constructs a borrowed output view directly from record slices.
Sourcepub const fn layouts(&self) -> &'a [LayoutReceipt] ⓘ
pub const fn layouts(&self) -> &'a [LayoutReceipt] ⓘ
Returns the layout records.
Sourcepub const fn draw_list(&self) -> &UiDrawListView<'a, S, T>
pub const fn draw_list(&self) -> &UiDrawListView<'a, S, T>
Returns the painter-ordered draw list.
Trait Implementations§
Source§impl<'a, S: Clone, T: Clone> Clone for UiOutputView<'a, S, T>
impl<'a, S: Clone, T: Clone> Clone for UiOutputView<'a, S, T>
Source§fn clone(&self) -> UiOutputView<'a, S, T>
fn clone(&self) -> UiOutputView<'a, S, T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a, S: Copy, T: Copy> Copy for UiOutputView<'a, S, T>
impl<'a, S: Eq, T: Eq> Eq for UiOutputView<'a, S, T>
impl<'a, S: PartialEq, T: PartialEq> StructuralPartialEq for UiOutputView<'a, S, T>
Auto Trait Implementations§
impl<'a, S, T> Freeze for UiOutputView<'a, S, T>
impl<'a, S, T> RefUnwindSafe for UiOutputView<'a, S, T>
impl<'a, S, T> Send for UiOutputView<'a, S, T>
impl<'a, S, T> Sync for UiOutputView<'a, S, T>
impl<'a, S, T> Unpin for UiOutputView<'a, S, T>
impl<'a, S, T> UnsafeUnpin for UiOutputView<'a, S, T>
impl<'a, S, T> UnwindSafe for UiOutputView<'a, S, T>
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
Returns a deterministic hash of the
TypeId of Self using a custom hasher.Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
Available on crate feature
alloc only.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> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
The alignment of this type in bytes.
Source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Returns the alignment of this type in bytes.
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Know whether dropping values of this type matters, in compile-time.
Source§fn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Returns the minimum alignment of the type in bytes. Read more
Source§fn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Returns the alignment of the pointed-to value in bytes. Read more
Source§fn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Returns the size of a type in bytes. Read more
Source§fn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Returns the size of the pointed-to value in bytes. Read more
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
Returns
true if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
Forgets about
self without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
Available on crate feature
unsafe_layout only.Returns the value of type
T represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
Available on crate feature
unsafe_layout only.Returns the value of type
T represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
Available on crate feature
unsafe_slice only.