pub struct Id<C: IntoCStr>(/* private fields */);Expand description
A string that works as a widget identifier.
Think of for example "###ok".
Use the function id() to build it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Id<C>where
C: Freeze,
impl<C> RefUnwindSafe for Id<C>where
C: RefUnwindSafe,
impl<C> Send for Id<C>where
C: Send,
impl<C> Sync for Id<C>where
C: Sync,
impl<C> Unpin for Id<C>where
C: Unpin,
impl<C> UnwindSafe for Id<C>where
C: 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> 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