pub struct Mask {
pub save_literals: bool,
/* private fields */
}Expand description
Uma máscara lida.
Fields§
§save_literals: boolGrava os literais junto (;1).
Implementations§
Source§impl Mask
impl Mask
pub fn parse(mask: &str) -> Option<Mask>
Sourcepub fn apply(&self, typed: &str) -> String
pub fn apply(&self, typed: &str) -> String
Encaixa o que foi digitado na máscara (para mostrar enquanto digita): os literais aparecem sozinhos conforme os dígitos chegam; o que não serve é ignorado.
Sourcepub fn is_complete(&self, text: &str) -> bool
pub fn is_complete(&self, text: &str) -> bool
Está completa (todas as posições obrigatórias preenchidas)?
Trait Implementations§
impl Eq for Mask
impl StructuralPartialEq for Mask
Auto Trait Implementations§
impl Forget for Mask
impl Freeze for Mask
impl Move for Mask
impl RefUnwindSafe for Mask
impl Send for Maskwhere
RawVecInner: Send,
impl Sync for Maskwhere
RawVecInner: Sync,
impl Unpin for Mask
impl UnsafeUnpin for Mask
impl UnwindSafe for Maskwhere
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.