Struct ui2::prelude::SharedString
source · pub struct SharedString(_);
Trait Implementations§
source§fn clone(&self) -> SharedString
fn clone(&self) -> SharedString
Returns a copy 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§fn default() -> SharedString
fn default() -> SharedString
Returns the “default value” for a type. Read more
type State = TextState
fn layout( &mut self, _: Option<<SharedString as Element>::State>, cx: &mut WindowContext<'_> ) -> (LayoutId, <SharedString as Element>::State)
fn paint( self, bounds: Bounds<Pixels>, state: &mut TextState, cx: &mut WindowContext<'_> )
fn into_any(self) -> AnyElement
source§fn from(name: SharedString) -> ElementId
fn from(name: SharedString) -> ElementId
Converts to this type from the input type.
source§fn from(value: T) -> SharedString
fn from(value: T) -> SharedString
Converts to this type from the input type.
source§fn eq(&self, other: &SharedString) -> bool
fn eq(&self, other: &SharedString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.type Element = SharedString
fn element_id(&self) -> Option<ElementId>
fn render_once(self) -> <SharedString as RenderOnce>::Element
fn render_into_any(self) -> AnyElement
fn draw<T, R>( self, origin: Point<Pixels>, available_space: Size<T>, cx: &mut WindowContext<'_>, f: impl FnOnce(&mut <Self::Element as Element>::State, &mut WindowContext<'_>) -> R ) -> Rwhere T: Clone + Default + Debug + Into<AvailableSpace>,
fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere Self: Sized, U: RenderOnce,
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere Self: Sized,
fn when_some<T>( self, option: Option<T>, then: impl FnOnce(Self, T) -> Self ) -> Selfwhere Self: Sized,
Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
fn __clone_box(&self, _: Private) -> *mut ()
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.