pub struct InputBar<'a> { /* private fields */ }Implementations§
Source§impl<'a> InputBar<'a>
impl<'a> InputBar<'a>
pub fn new(label: &'a str, input: &'a Input) -> Self
pub fn placeholder(self, placeholder: &'a str) -> Self
pub fn hint(self, hint: &'a str) -> Self
pub fn mask(self, mask: &'a str) -> Self
pub fn rule(self, rule: bool) -> Self
pub fn caret(self, caret: bool) -> Self
pub fn reveal_ends(self, chars: usize) -> Self
pub fn tone(self, tone: Tone) -> Self
pub fn styles(self, styles: Styles) -> Self
pub fn height(&self) -> u16
pub fn cursor(&self, area: Rect) -> Option<Position>
Trait Implementations§
impl<'a> Copy for InputBar<'a>
impl<'a> Eq for InputBar<'a>
impl<'a> StructuralPartialEq for InputBar<'a>
Auto Trait Implementations§
impl<'a> Freeze for InputBar<'a>
impl<'a> RefUnwindSafe for InputBar<'a>
impl<'a> Send for InputBar<'a>
impl<'a> Sync for InputBar<'a>
impl<'a> Unpin for InputBar<'a>
impl<'a> UnsafeUnpin for InputBar<'a>
impl<'a> UnwindSafe for InputBar<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more