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>
Source§fn clone(&self) -> ParsedJidParts<'a>
fn clone(&self) -> ParsedJidParts<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ParsedJidParts<'a>
impl<'a> Debug for ParsedJidParts<'a>
impl<'a> Copy for ParsedJidParts<'a>
Auto Trait Implementations§
impl<'a> Freeze 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>
impl<'a> UnwindSafe for ParsedJidParts<'a>
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