[−][src]Enum wl_clipboard_rs::paste::MimeType
MIME types that can be requested from the clipboard.
Variants
Request any available MIME type.
If multiple MIME types are offered, the requested MIME type is unspecified and depends on the order they are received from the Wayland compositor. However, plain text formats are prioritized, so if a plain text format is available among others then it will be requested.
Request a plain text MIME type.
This will request one of the multiple common plain text MIME types. It will prioritize MIME types known to return UTF-8 text.
TextWithPriority(&'a str)
Request the given MIME type, and if it's not available fall back to MimeType::Text
.
Example use-case: pasting text/html
should try text/html
first, but if it's not
available, any other plain text format will do fine too.
Specific(&'a str)
Request a specific MIME type.
Trait Implementations
impl<'a> Clone for MimeType<'a>
[src]
impl<'a> Copy for MimeType<'a>
[src]
impl<'a> Debug for MimeType<'a>
[src]
impl<'a> Eq for MimeType<'a>
[src]
impl<'a> Hash for MimeType<'a>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Ord for MimeType<'a>
[src]
fn cmp(&self, other: &MimeType<'a>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a> PartialEq<MimeType<'a>> for MimeType<'a>
[src]
impl<'a> PartialOrd<MimeType<'a>> for MimeType<'a>
[src]
fn partial_cmp(&self, other: &MimeType<'a>) -> Option<Ordering>
[src]
fn lt(&self, other: &MimeType<'a>) -> bool
[src]
fn le(&self, other: &MimeType<'a>) -> bool
[src]
fn gt(&self, other: &MimeType<'a>) -> bool
[src]
fn ge(&self, other: &MimeType<'a>) -> bool
[src]
impl<'a> StructuralEq for MimeType<'a>
[src]
impl<'a> StructuralPartialEq for MimeType<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for MimeType<'a>
impl<'a> Send for MimeType<'a>
impl<'a> Sync for MimeType<'a>
impl<'a> Unpin for MimeType<'a>
impl<'a> UnwindSafe for MimeType<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,