pub struct SurfaceDisplay<'a, S: Surface + ?Sized> { /* private fields */ }Expand description
A Display adapter over a Surface, returned by
Encode::display and Encode::display_with.
Formatting it emits the same bytes as Encode::encode_with with the
adapter’s profile.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for SurfaceDisplay<'a, S>where
S: ?Sized,
impl<'a, S> RefUnwindSafe for SurfaceDisplay<'a, S>where
S: RefUnwindSafe + ?Sized,
impl<'a, S> Send for SurfaceDisplay<'a, S>
impl<'a, S> Sync for SurfaceDisplay<'a, S>
impl<'a, S> Unpin for SurfaceDisplay<'a, S>where
S: ?Sized,
impl<'a, S> UnsafeUnpin for SurfaceDisplay<'a, S>where
S: ?Sized,
impl<'a, S> UnwindSafe for SurfaceDisplay<'a, S>where
S: RefUnwindSafe + ?Sized,
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
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more