pub struct ParsedJidParts<'a> {
pub user: &'a str,
pub server: &'a str,
pub agent: u8,
pub device: u16,
pub integrator: u16,
}Expand description
Intermediate result from fast JID parsing. This avoids allocations by returning byte indices into the original string.
Fields§
§user: &'a str§server: &'a str§agent: u8§device: u16§integrator: u16Trait Implementations§
Source§impl<'a> Clone for ParsedJidParts<'a>
impl<'a> Clone for ParsedJidParts<'a>
impl<'a> Copy for ParsedJidParts<'a>
Auto Trait Implementations§
impl<'a> Forget for ParsedJidParts<'a>
impl<'a> Freeze for ParsedJidParts<'a>
impl<'a> Move for ParsedJidParts<'a>
impl<'a> RefUnwindSafe for ParsedJidParts<'a>
impl<'a> Send for ParsedJidParts<'a>
impl<'a> Sync for ParsedJidParts<'a>
impl<'a> Unpin for ParsedJidParts<'a>
impl<'a> UnsafeUnpin for ParsedJidParts<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for ParsedJidParts<'a>where
&'a str: 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