pub struct Property {
pub name: String,
pub data: Vec<u8>,
}Fields§
§name: String§data: Vec<u8>Implementations§
Source§impl Property
impl Property
pub fn new(name: &str, data: Vec<u8>) -> Self
pub fn name(&self) -> &str
pub fn get_u32(&self) -> Option<u32>
pub fn set_u32_ls(&mut self, values: &[u32])
pub fn get_u32_iter(&self) -> U32Iter<'_>
pub fn get_u64(&self) -> Option<u64>
pub fn set_u64(&mut self, value: u64)
pub fn as_str(&self) -> Option<&str>
pub fn set_string(&mut self, value: &str)
pub fn as_str_iter(&self) -> StrIter<'_>
pub fn set_string_ls(&mut self, values: &[&str])
pub fn as_reader(&self) -> Reader<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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