pub struct Attribute {
pub sections: Vec<Section>,
}Expand description
Offscreen.Attribute, kept value for value so it can be written back.
Fields§
§sections: Vec<Section>The sections, in stored order.
Implementations§
Source§impl Attribute
impl Attribute
Sourcepub fn parameter_extra(&self) -> &[u32]
pub fn parameter_extra(&self) -> &[u32]
The two values after the named ones (observed 0, 0, and 1, 0 for
1-bit offscreens).
Sourcepub fn init_color(&self) -> Option<InitColor>
pub fn init_color(&self) -> Option<InitColor>
The InitColor section, if any.
Sourcepub fn block_sizes(&self) -> Option<&[u32]>
pub fn block_sizes(&self) -> Option<&[u32]>
BlockSize: the length of every block record in the payload.
Sourcepub fn set_block_sizes(&mut self, sizes: &[u32])
pub fn set_block_sizes(&mut self, sizes: &[u32])
Replaces (or adds) the BlockSize section.
Trait Implementations§
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.