pub struct Properties;Expand description
The properties of one concept, in property key order.
Implementations§
Source§impl Properties
impl Properties
Sourcepub fn encode(entries: &[(u32, &[u8])]) -> Vec<u8> ⓘ
pub fn encode(entries: &[(u32, &[u8])]) -> Vec<u8> ⓘ
The bytes of entries, each a property key and its encoded value list.
Sourcepub fn decode(
bytes: &[u8],
) -> Result<Vec<(u32, Vec<PropertyValue>)>, RecordError>
pub fn decode( bytes: &[u8], ) -> Result<Vec<(u32, Vec<PropertyValue>)>, RecordError>
Every property key and its values, in the order the build wrote them.
§Errors
Returns RecordError when the entries are truncated or a value list
is damaged.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnsafeUnpin for Properties
impl UnwindSafe for Properties
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