pub struct UserData { /* private fields */ }Expand description
Entries key=value;.
Implementations§
Source§impl UserData
impl UserData
Sourcepub fn parse(octets: &[u8]) -> UserData
pub fn parse(octets: &[u8]) -> UserData
The entries of USER_DATA octets. Octets that are not entries
(not UTF-8, or a part without =) are left out.
Sourcepub fn set(&mut self, key: &str, value: &str) -> &mut Self
pub fn set(&mut self, key: &str, value: &str) -> &mut Self
Sets key to value, in place if it is there, else at the end.
key must not have = or ;, value not ;.
Sourcepub fn merge(&mut self, other: &UserData) -> &mut Self
pub fn merge(&mut self, other: &UserData) -> &mut Self
Takes the entries of other (theirs win).
Sourcepub fn set_type_hash(&mut self, hash: &TypeHash) -> &mut Self
pub fn set_type_hash(&mut self, hash: &TypeHash) -> &mut Self
Sets the type hash.
Trait Implementations§
impl Eq for UserData
impl StructuralPartialEq for UserData
Auto Trait Implementations§
impl Forget for UserData
impl Freeze for UserData
impl Move for UserData
impl RefUnwindSafe for UserData
impl Send for UserDatawhere
RawVecInner: Send,
impl Sync for UserDatawhere
RawVecInner: Sync,
impl Unpin for UserData
impl UnsafeUnpin for UserData
impl UnwindSafe for UserDatawhere
RawVecInner: UnwindSafe,
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