pub struct ShortCodePattern { /* private fields */ }Expand description
A short code a DialContext recognises: a digit prefix and the exact
total length.
ShortCodePattern::new("116", 6) matches 116117; ("15", 2) matches the
French SAMU. Checked when handed to DialContext::with_short_codes.
Implementations§
Trait Implementations§
Source§impl Clone for ShortCodePattern
impl Clone for ShortCodePattern
impl Copy for ShortCodePattern
Source§impl Debug for ShortCodePattern
impl Debug for ShortCodePattern
impl Eq for ShortCodePattern
Source§impl Hash for ShortCodePattern
impl Hash for ShortCodePattern
Source§impl PartialEq for ShortCodePattern
impl PartialEq for ShortCodePattern
impl StructuralPartialEq for ShortCodePattern
Auto Trait Implementations§
impl Forget for ShortCodePattern
impl Freeze for ShortCodePattern
impl Move for ShortCodePattern
impl RefUnwindSafe for ShortCodePattern
impl Send for ShortCodePattern
impl Sync for ShortCodePattern
impl Unpin for ShortCodePattern
impl UnsafeUnpin for ShortCodePattern
impl UnwindSafe for ShortCodePattern
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