pub struct Array(/* private fields */);
Expand description
Wrapper around the array data provided by the wayland wire format.
On the wire, wl_array arguments are simple byte arrays. Protocol documentation may specify a specific interpretation of the bytes, however this is not directly modeled in the protocol XML.
For example, the wl_keyboard::enter event has an argument for the set of keys pressed at the time of the event:
While not explitly stated, |keys| is an array of |uint| arguments. These are packed into the array using the same rules used to write consecutive |uint| arguments to a Message.
Implementations§
Source§impl Array
impl Array
Sourcepub fn from_vec(v: Vec<u8>) -> Self
pub fn from_vec(v: Vec<u8>) -> Self
Creates a new Array that contains the bytes stored in the provided Vec.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
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