pub enum Cow<'a, B>{
Borrowed(&'a B),
Owned(<B as ToOwned>::Owned),
}Expand description
A clone-on-write smart pointer.
The type Cow is a smart pointer providing clone-on-write functionality: it
can enclose and provide immutable access to borrowed data, and clone the
data lazily when mutation or ownership is required. The type is designed to
work with general borrowed data via the Borrow trait.
Cow implements Deref, which means that you can call
non-mutating methods directly on the data it encloses. If mutation
is desired, to_mut will obtain a mutable reference to an owned
value, cloning if necessary.
If you need reference-counting pointers, note that
Rc::make_mut and
Arc::make_mut can provide clone-on-write
functionality as well.
§Examples
use std::borrow::Cow;
fn abs_all(input: &mut Cow<'_, [i32]>) {
for i in 0..input.len() {
let v = input[i];
if v < 0 {
// Clones into a vector if not already owned.
input.to_mut()[i] = -v;
}
}
}
// No clone occurs because `input` doesn't need to be mutated.
let slice = [0, 1, 2];
let mut input = Cow::from(&slice[..]);
abs_all(&mut input);
// Clone occurs because `input` needs to be mutated.
let slice = [-1, 0, 1];
let mut input = Cow::from(&slice[..]);
abs_all(&mut input);
// No clone occurs because `input` is already owned.
let mut input = Cow::from(vec![-1, 0, 1]);
abs_all(&mut input);Another example showing how to keep Cow in a struct:
use std::borrow::Cow;
struct Items<'a, X> where [X]: ToOwned<Owned = Vec<X>> {
values: Cow<'a, [X]>,
}
impl<'a, X: Clone + 'a> Items<'a, X> where [X]: ToOwned<Owned = Vec<X>> {
fn new(v: Cow<'a, [X]>) -> Self {
Items { values: v }
}
}
// Creates a container from borrowed values of a slice
let readonly = [1, 2];
let borrowed = Items::new((&readonly[..]).into());
match borrowed {
Items { values: Cow::Borrowed(b) } => println!("borrowed {b:?}"),
_ => panic!("expect borrowed value"),
}
let mut clone_on_write = borrowed;
// Mutates the data from slice into owned vec and pushes a new value on top
clone_on_write.values.to_mut().push(3);
println!("clone_on_write = {:?}", clone_on_write.values);
// The data was mutated. Let's check it out.
match clone_on_write {
Items { values: Cow::Owned(_) } => println!("clone_on_write contains owned data"),
_ => panic!("expect owned data"),
}Variants§
Implementations§
Source§impl<B> Cow<'_, B>
impl<B> Cow<'_, B>
Sourcepub const fn is_borrowed(c: &Cow<'_, B>) -> bool
🔬This is a nightly-only experimental API. (cow_is_borrowed)
pub const fn is_borrowed(c: &Cow<'_, B>) -> bool
cow_is_borrowed)Returns true if the data is borrowed, i.e. if to_mut would require additional work.
Note: this is an associated function, which means that you have to call
it as Cow::is_borrowed(&c) instead of c.is_borrowed(). This is so
that there is no conflict with a method on the inner type.
§Examples
#![feature(cow_is_borrowed)]
use std::borrow::Cow;
let cow = Cow::Borrowed("moo");
assert!(Cow::is_borrowed(&cow));
let bull: Cow<'_, str> = Cow::Owned("...moo?".to_string());
assert!(!Cow::is_borrowed(&bull));Sourcepub const fn is_owned(c: &Cow<'_, B>) -> bool
🔬This is a nightly-only experimental API. (cow_is_borrowed)
pub const fn is_owned(c: &Cow<'_, B>) -> bool
cow_is_borrowed)Returns true if the data is owned, i.e. if to_mut would be a no-op.
Note: this is an associated function, which means that you have to call
it as Cow::is_owned(&c) instead of c.is_owned(). This is so that
there is no conflict with a method on the inner type.
§Examples
#![feature(cow_is_borrowed)]
use std::borrow::Cow;
let cow: Cow<'_, str> = Cow::Owned("moo".to_string());
assert!(Cow::is_owned(&cow));
let bull = Cow::Borrowed("...moo?");
assert!(!Cow::is_owned(&bull));1.0.0 · Sourcepub fn to_mut(&mut self) -> &mut <B as ToOwned>::Owned
pub fn to_mut(&mut self) -> &mut <B as ToOwned>::Owned
Acquires a mutable reference to the owned form of the data.
Clones the data if it is not already owned.
§Examples
use std::borrow::Cow;
let mut cow = Cow::Borrowed("foo");
cow.to_mut().make_ascii_uppercase();
assert_eq!(
cow,
Cow::Owned(String::from("FOO")) as Cow<'_, str>
);1.0.0 · Sourcepub fn into_owned(self) -> <B as ToOwned>::Owned
pub fn into_owned(self) -> <B as ToOwned>::Owned
Extracts the owned data.
Clones the data if it is not already owned.
§Examples
Calling into_owned on a Cow::Borrowed returns a clone of the borrowed data:
use std::borrow::Cow;
let s = "Hello world!";
let cow = Cow::Borrowed(s);
assert_eq!(
cow.into_owned(),
String::from(s)
);Calling into_owned on a Cow::Owned returns the owned data. The data is moved out of the
Cow without being cloned.
use std::borrow::Cow;
let s = "Hello world!";
let cow: Cow<'_, str> = Cow::Owned(String::from(s));
assert_eq!(
cow.into_owned(),
String::from(s)
);Trait Implementations§
1.14.0 · Source§impl<'a> AddAssign<&'a str> for Cow<'a, str>
impl<'a> AddAssign<&'a str> for Cow<'a, str>
Source§fn add_assign(&mut self, rhs: &'a str)
fn add_assign(&mut self, rhs: &'a str)
+= operation. Read moreSource§impl<'a> Arg for Cow<'a, CStr>
impl<'a> Arg for Cow<'a, CStr>
Source§fn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Cow<'_, str>.Source§fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
CStr.Source§impl<'a> Arg for Cow<'a, CStr>
impl<'a> Arg for Cow<'a, CStr>
Source§fn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Cow<'_, str>.Source§fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
CStr.Source§impl<'a> Arg for Cow<'a, OsStr>
impl<'a> Arg for Cow<'a, OsStr>
Source§fn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Cow<'_, str>.Source§fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
CStr.Source§impl<'a> Arg for Cow<'a, OsStr>
impl<'a> Arg for Cow<'a, OsStr>
Source§fn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Cow<'_, str>.Source§fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
CStr.Source§impl<'a> Arg for Cow<'a, str>
impl<'a> Arg for Cow<'a, str>
Source§fn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Cow<'_, str>.Source§fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
CStr.Source§impl<'a> Arg for Cow<'a, str>
impl<'a> Arg for Cow<'a, str>
Source§fn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Cow<'_, str>.Source§fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>, Errno>
CStr.Source§impl<C> Connection for Cow<'_, C>
impl<C> Connection for Cow<'_, C>
Source§fn wait_for_event(&self) -> Result<Event, ConnectionError>
fn wait_for_event(&self) -> Result<Event, ConnectionError>
Source§fn wait_for_raw_event(
&self,
) -> Result<<Cow<'_, C> as RequestConnection>::Buf, ConnectionError>
fn wait_for_raw_event( &self, ) -> Result<<Cow<'_, C> as RequestConnection>::Buf, ConnectionError>
Source§fn wait_for_event_with_sequence(&self) -> Result<(Event, u64), ConnectionError>
fn wait_for_event_with_sequence(&self) -> Result<(Event, u64), ConnectionError>
Source§fn wait_for_raw_event_with_sequence(
&self,
) -> Result<(<Cow<'_, C> as RequestConnection>::Buf, u64), ConnectionError>
fn wait_for_raw_event_with_sequence( &self, ) -> Result<(<Cow<'_, C> as RequestConnection>::Buf, u64), ConnectionError>
Source§fn poll_for_event(&self) -> Result<Option<Event>, ConnectionError>
fn poll_for_event(&self) -> Result<Option<Event>, ConnectionError>
Source§fn poll_for_raw_event(
&self,
) -> Result<Option<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
fn poll_for_raw_event( &self, ) -> Result<Option<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
Source§fn poll_for_event_with_sequence(
&self,
) -> Result<Option<(Event, u64)>, ConnectionError>
fn poll_for_event_with_sequence( &self, ) -> Result<Option<(Event, u64)>, ConnectionError>
Source§fn poll_for_raw_event_with_sequence(
&self,
) -> Result<Option<(<Cow<'_, C> as RequestConnection>::Buf, u64)>, ConnectionError>
fn poll_for_raw_event_with_sequence( &self, ) -> Result<Option<(<Cow<'_, C> as RequestConnection>::Buf, u64)>, ConnectionError>
Source§fn flush(&self) -> Result<(), ConnectionError>
fn flush(&self) -> Result<(), ConnectionError>
Source§fn generate_id(&self) -> Result<u32, ReplyOrIdError>
fn generate_id(&self) -> Result<u32, ReplyOrIdError>
Source§impl<'de, 'a, T> Deserialize<'de> for Cow<'a, T>
impl<'de, 'a, T> Deserialize<'de> for Cow<'a, T>
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Cow<'a, T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Cow<'a, T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl<T> EncodeAsVarULE<T> for Cow<'_, T>
impl<T> EncodeAsVarULE<T> for Cow<'_, T>
Source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
cb with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T. Read moreSource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
VarULE typeSource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
VarULE type to the dst buffer. dst should
be the size of Self::encode_var_ule_len()1.19.0 · Source§impl<'a> Extend<Cow<'a, str>> for String
impl<'a> Extend<Cow<'a, str>> for String
Source§fn extend<I>(&mut self, iter: I)
fn extend<I>(&mut self, iter: I)
Source§fn extend_one(&mut self, s: Cow<'a, str>)
fn extend_one(&mut self, s: Cow<'a, str>)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl<'a, S> From<&'a RiAbsoluteStr<S>> for Cow<'a, RiAbsoluteStr<S>>where
S: Spec,
impl<'a, S> From<&'a RiAbsoluteStr<S>> for Cow<'a, RiAbsoluteStr<S>>where
S: Spec,
Source§fn from(s: &'a RiAbsoluteStr<S>) -> Cow<'a, RiAbsoluteStr<S>>
fn from(s: &'a RiAbsoluteStr<S>) -> Cow<'a, RiAbsoluteStr<S>>
Source§impl<'a, S> From<&'a RiFragmentStr<S>> for Cow<'a, RiFragmentStr<S>>where
S: Spec,
impl<'a, S> From<&'a RiFragmentStr<S>> for Cow<'a, RiFragmentStr<S>>where
S: Spec,
Source§fn from(s: &'a RiFragmentStr<S>) -> Cow<'a, RiFragmentStr<S>>
fn from(s: &'a RiFragmentStr<S>) -> Cow<'a, RiFragmentStr<S>>
Source§impl<'a, S> From<&'a RiQueryStr<S>> for Cow<'a, RiQueryStr<S>>where
S: Spec,
impl<'a, S> From<&'a RiQueryStr<S>> for Cow<'a, RiQueryStr<S>>where
S: Spec,
Source§fn from(s: &'a RiQueryStr<S>) -> Cow<'a, RiQueryStr<S>>
fn from(s: &'a RiQueryStr<S>) -> Cow<'a, RiQueryStr<S>>
Source§impl<'a, S> From<&'a RiReferenceStr<S>> for Cow<'a, RiReferenceStr<S>>where
S: Spec,
impl<'a, S> From<&'a RiReferenceStr<S>> for Cow<'a, RiReferenceStr<S>>where
S: Spec,
Source§fn from(s: &'a RiReferenceStr<S>) -> Cow<'a, RiReferenceStr<S>>
fn from(s: &'a RiReferenceStr<S>) -> Cow<'a, RiReferenceStr<S>>
Source§impl<'a, S> From<&'a RiRelativeStr<S>> for Cow<'a, RiRelativeStr<S>>where
S: Spec,
impl<'a, S> From<&'a RiRelativeStr<S>> for Cow<'a, RiRelativeStr<S>>where
S: Spec,
Source§fn from(s: &'a RiRelativeStr<S>) -> Cow<'a, RiRelativeStr<S>>
fn from(s: &'a RiRelativeStr<S>) -> Cow<'a, RiRelativeStr<S>>
Source§impl<'a> From<&'a UriTemplateStr> for Cow<'a, UriTemplateStr>
impl<'a> From<&'a UriTemplateStr> for Cow<'a, UriTemplateStr>
Source§fn from(s: &'a UriTemplateStr) -> Cow<'a, UriTemplateStr>
fn from(s: &'a UriTemplateStr) -> Cow<'a, UriTemplateStr>
Source§impl From<Cow<'_, GreenNodeData>> for NodeOrToken<GreenNode, GreenToken>
impl From<Cow<'_, GreenNodeData>> for NodeOrToken<GreenNode, GreenToken>
Source§fn from(cow: Cow<'_, GreenNodeData>) -> NodeOrToken<GreenNode, GreenToken>
fn from(cow: Cow<'_, GreenNodeData>) -> NodeOrToken<GreenNode, GreenToken>
1.14.0 · Source§impl<'a, T> From<Cow<'a, [T]>> for Vec<T>
impl<'a, T> From<Cow<'a, [T]>> for Vec<T>
Source§fn from(s: Cow<'a, [T]>) -> Vec<T>
fn from(s: Cow<'a, [T]>) -> Vec<T>
Converts a clone-on-write slice into a vector.
If s already owns a Vec<T>, it will be returned directly.
If s is borrowing a slice, a new Vec<T> will be allocated and
filled by cloning s’s items into it.
§Examples
let o: Cow<'_, [i32]> = Cow::Owned(vec![1, 2, 3]);
let b: Cow<'_, [i32]> = Cow::Borrowed(&[1, 2, 3]);
assert_eq!(Vec::from(o), Vec::from(b));1.14.0 · Source§impl<'a> From<Cow<'a, str>> for String
impl<'a> From<Cow<'a, str>> for String
Source§fn from(s: Cow<'a, str>) -> String
fn from(s: Cow<'a, str>) -> String
Converts a clone-on-write string to an owned
instance of String.
This extracts the owned string, clones the string if it is not already owned.
§Example
// If the string is not owned...
let cow: Cow<'_, str> = Cow::Borrowed("eggplant");
// It will allocate on the heap and copy the string.
let owned: String = String::from(cow);
assert_eq!(&owned[..], "eggplant");Source§impl<'a> From<Cow<'a, str>> for Value
impl<'a> From<Cow<'a, str>> for Value
Source§fn from(f: Cow<'a, str>) -> Value
fn from(f: Cow<'a, str>) -> Value
Convert copy-on-write string to Value::String.
§Examples
use serde_json::Value;
use std::borrow::Cow;
let s: Cow<str> = Cow::Borrowed("lorem");
let x: Value = s.into();use serde_json::Value;
use std::borrow::Cow;
let s: Cow<str> = Cow::Owned("lorem".to_owned());
let x: Value = s.into();Source§impl<'a, S> From<RiAbsoluteString<S>> for Cow<'a, RiAbsoluteStr<S>>where
S: Spec,
impl<'a, S> From<RiAbsoluteString<S>> for Cow<'a, RiAbsoluteStr<S>>where
S: Spec,
Source§fn from(s: RiAbsoluteString<S>) -> Cow<'a, RiAbsoluteStr<S>>
fn from(s: RiAbsoluteString<S>) -> Cow<'a, RiAbsoluteStr<S>>
Source§impl<'a, S> From<RiFragmentString<S>> for Cow<'a, RiFragmentStr<S>>where
S: Spec,
impl<'a, S> From<RiFragmentString<S>> for Cow<'a, RiFragmentStr<S>>where
S: Spec,
Source§fn from(s: RiFragmentString<S>) -> Cow<'a, RiFragmentStr<S>>
fn from(s: RiFragmentString<S>) -> Cow<'a, RiFragmentStr<S>>
Source§impl<'a, S> From<RiQueryString<S>> for Cow<'a, RiQueryStr<S>>where
S: Spec,
impl<'a, S> From<RiQueryString<S>> for Cow<'a, RiQueryStr<S>>where
S: Spec,
Source§fn from(s: RiQueryString<S>) -> Cow<'a, RiQueryStr<S>>
fn from(s: RiQueryString<S>) -> Cow<'a, RiQueryStr<S>>
Source§impl<'a, S> From<RiReferenceString<S>> for Cow<'a, RiReferenceStr<S>>where
S: Spec,
impl<'a, S> From<RiReferenceString<S>> for Cow<'a, RiReferenceStr<S>>where
S: Spec,
Source§fn from(s: RiReferenceString<S>) -> Cow<'a, RiReferenceStr<S>>
fn from(s: RiReferenceString<S>) -> Cow<'a, RiReferenceStr<S>>
Source§impl<'a, S> From<RiRelativeString<S>> for Cow<'a, RiRelativeStr<S>>where
S: Spec,
impl<'a, S> From<RiRelativeString<S>> for Cow<'a, RiRelativeStr<S>>where
S: Spec,
Source§fn from(s: RiRelativeString<S>) -> Cow<'a, RiRelativeStr<S>>
fn from(s: RiRelativeString<S>) -> Cow<'a, RiRelativeStr<S>>
Source§impl<'a> From<UriTemplateString> for Cow<'a, UriTemplateStr>
impl<'a> From<UriTemplateString> for Cow<'a, UriTemplateStr>
Source§fn from(s: UriTemplateString) -> Cow<'a, UriTemplateStr>
fn from(s: UriTemplateString) -> Cow<'a, UriTemplateStr>
Source§impl<'r> FromData<'r> for Cow<'_, str>
impl<'r> FromData<'r> for Cow<'_, str>
Source§type Error = <Capped<Cow<'_, str>> as FromData<'r>>::Error
type Error = <Capped<Cow<'_, str>> as FromData<'r>>::Error
Source§fn from_data<'life0, 'async_trait>(
r: &'r Request<'life0>,
d: Data<'r>,
) -> Pin<Box<dyn Future<Output = Outcome<Cow<'_, str>, (Status, <Cow<'_, str> as FromData<'r>>::Error), (Data<'r>, Status)>> + Send + 'async_trait>>
fn from_data<'life0, 'async_trait>( r: &'r Request<'life0>, d: Data<'r>, ) -> Pin<Box<dyn Future<Output = Outcome<Cow<'_, str>, (Status, <Cow<'_, str> as FromData<'r>>::Error), (Data<'r>, Status)>> + Send + 'async_trait>>
Self
from the incoming request body data. Read moreSource§impl<'v> FromFormField<'v> for Cow<'v, str>
impl<'v> FromFormField<'v> for Cow<'v, str>
Source§impl<'x, 'a, P> FromUriParam<P, &'x Cow<'a, str>> for Cow<'a, str>where
P: Part,
impl<'x, 'a, P> FromUriParam<P, &'x Cow<'a, str>> for Cow<'a, str>where
P: Part,
Source§fn from_uri_param(param: &'x Cow<'a, str>) -> &'x Cow<'a, str>
fn from_uri_param(param: &'x Cow<'a, str>) -> &'x Cow<'a, str>
T into a value of type Self::Target. The
resulting value of type Self::Target will be rendered into a URI using
its UriDisplay implementation.Source§impl<'x, 'a, P> FromUriParam<P, &'x mut Cow<'a, str>> for Cow<'a, str>where
P: Part,
impl<'x, 'a, P> FromUriParam<P, &'x mut Cow<'a, str>> for Cow<'a, str>where
P: Part,
Source§fn from_uri_param(param: &'x mut Cow<'a, str>) -> &'x mut Cow<'a, str>
fn from_uri_param(param: &'x mut Cow<'a, str>) -> &'x mut Cow<'a, str>
T into a value of type Self::Target. The
resulting value of type Self::Target will be rendered into a URI using
its UriDisplay implementation.Source§impl<'de, 'a, E> IntoDeserializer<'de, E> for Cow<'a, str>where
E: Error,
impl<'de, 'a, E> IntoDeserializer<'de, E> for Cow<'a, str>where
E: Error,
Source§type Deserializer = CowStrDeserializer<'a, E>
type Deserializer = CowStrDeserializer<'a, E>
Source§fn into_deserializer(self) -> CowStrDeserializer<'a, E>
fn into_deserializer(self) -> CowStrDeserializer<'a, E>
1.0.0 · Source§impl<B> Ord for Cow<'_, B>
impl<B> Ord for Cow<'_, B>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<S, T> PartialEq<&RiAbsoluteStr<S>> for Cow<'_, RiAbsoluteStr<T>>
impl<S, T> PartialEq<&RiAbsoluteStr<S>> for Cow<'_, RiAbsoluteStr<T>>
Source§impl<S, T> PartialEq<&RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialEq<&RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialEq<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
impl<S, T> PartialEq<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
Source§impl<S, T> PartialEq<&RiQueryStr<S>> for Cow<'_, RiQueryStr<T>>
impl<S, T> PartialEq<&RiQueryStr<S>> for Cow<'_, RiQueryStr<T>>
Source§impl<S, T> PartialEq<&RiReferenceStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialEq<&RiReferenceStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialEq<&RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialEq<&RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialEq<&RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialEq<&RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<S, T> PartialEq<&RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialEq<&RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialEq<&RiRelativeStr<S>> for Cow<'_, RiRelativeStr<T>>
impl<S, T> PartialEq<&RiRelativeStr<S>> for Cow<'_, RiRelativeStr<T>>
Source§impl<S, T> PartialEq<Cow<'_, RiAbsoluteStr<S>>> for &RiReferenceStr<T>
impl<S, T> PartialEq<Cow<'_, RiAbsoluteStr<S>>> for &RiReferenceStr<T>
Source§impl<S, T> PartialEq<Cow<'_, RiAbsoluteStr<S>>> for RiReferenceStr<T>
impl<S, T> PartialEq<Cow<'_, RiAbsoluteStr<S>>> for RiReferenceStr<T>
Source§impl<S, T> PartialEq<Cow<'_, RiAbsoluteStr<T>>> for &RiAbsoluteStr<S>
impl<S, T> PartialEq<Cow<'_, RiAbsoluteStr<T>>> for &RiAbsoluteStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
impl<S, T> PartialEq<Cow<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiQueryStr<T>>> for &RiQueryStr<S>
impl<S, T> PartialEq<Cow<'_, RiQueryStr<T>>> for &RiQueryStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for &RiAbsoluteStr<S>
impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for &RiAbsoluteStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for &RiReferenceStr<S>
impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for &RiReferenceStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for &RiRelativeStr<S>
impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for &RiRelativeStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteStr<S>
impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for RiRelativeStr<S>
impl<S, T> PartialEq<Cow<'_, RiReferenceStr<T>>> for RiRelativeStr<S>
Source§impl<S, T> PartialEq<Cow<'_, RiRelativeStr<S>>> for &RiReferenceStr<T>
impl<S, T> PartialEq<Cow<'_, RiRelativeStr<S>>> for &RiReferenceStr<T>
Source§impl<S, T> PartialEq<Cow<'_, RiRelativeStr<S>>> for RiReferenceStr<T>
impl<S, T> PartialEq<Cow<'_, RiRelativeStr<S>>> for RiReferenceStr<T>
Source§impl<S, T> PartialEq<Cow<'_, RiRelativeStr<T>>> for &RiRelativeStr<S>
impl<S, T> PartialEq<Cow<'_, RiRelativeStr<T>>> for &RiRelativeStr<S>
Source§impl<S, T> PartialEq<RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialEq<RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialEq<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialEq<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialEq<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialEq<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialEq<RiFragmentString<T>> for Cow<'_, RiFragmentStr<S>>
impl<S, T> PartialEq<RiFragmentString<T>> for Cow<'_, RiFragmentStr<S>>
Source§impl<S, T> PartialEq<RiQueryString<T>> for Cow<'_, RiQueryStr<S>>
impl<S, T> PartialEq<RiQueryString<T>> for Cow<'_, RiQueryStr<S>>
Source§impl<S, T> PartialEq<RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialEq<RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialEq<RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialEq<RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<S, T> PartialEq<RiReferenceString<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialEq<RiReferenceString<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialEq<RiReferenceString<T>> for Cow<'_, RiReferenceStr<S>>
impl<S, T> PartialEq<RiReferenceString<T>> for Cow<'_, RiReferenceStr<S>>
Source§impl<S, T> PartialEq<RiReferenceString<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialEq<RiReferenceString<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<S, T> PartialEq<RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialEq<RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialEq<RiRelativeString<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialEq<RiRelativeString<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialEq<RiRelativeString<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialEq<RiRelativeString<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<'a> PartialOrd<&'a ByteStr> for Cow<'a, [u8]>
impl<'a> PartialOrd<&'a ByteStr> for Cow<'a, [u8]>
Source§impl<'a> PartialOrd<&'a ByteStr> for Cow<'a, ByteStr>
impl<'a> PartialOrd<&'a ByteStr> for Cow<'a, ByteStr>
Source§impl<'a> PartialOrd<&'a ByteStr> for Cow<'a, str>
impl<'a> PartialOrd<&'a ByteStr> for Cow<'a, str>
1.8.0 · Source§impl<'a, 'b> PartialOrd<&'b OsStr> for Cow<'a, OsStr>
impl<'a, 'b> PartialOrd<&'b OsStr> for Cow<'a, OsStr>
1.8.0 · Source§impl<'a, 'b> PartialOrd<&'b OsStr> for Cow<'a, Path>
impl<'a, 'b> PartialOrd<&'b OsStr> for Cow<'a, Path>
1.8.0 · Source§impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, Path>
impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, Path>
1.8.0 · Source§impl<'a, 'b> PartialOrd<&'a Path> for Cow<'b, OsStr>
impl<'a, 'b> PartialOrd<&'a Path> for Cow<'b, OsStr>
Source§impl PartialOrd<&RawStr> for Cow<'_, RawStr>
impl PartialOrd<&RawStr> for Cow<'_, RawStr>
Source§impl PartialOrd<&RawStr> for Cow<'_, str>
impl PartialOrd<&RawStr> for Cow<'_, str>
Source§impl<S, T> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, RiAbsoluteStr<T>>
impl<S, T> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, RiAbsoluteStr<T>>
Source§impl<S, T> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, RiStr<T>>
impl<S, T> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, RiStr<T>>
Source§impl<S> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<&RiAbsoluteStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
impl<S, T> PartialOrd<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
Source§impl<S> PartialOrd<&RiFragmentStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<&RiFragmentStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<&RiQueryStr<S>> for Cow<'_, RiQueryStr<T>>
impl<S, T> PartialOrd<&RiQueryStr<S>> for Cow<'_, RiQueryStr<T>>
Source§impl<S> PartialOrd<&RiQueryStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<&RiQueryStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<&RiReferenceStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<&RiReferenceStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S> PartialOrd<&RiReferenceStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<&RiReferenceStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<&RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialOrd<&RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialOrd<&RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialOrd<&RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<S, T> PartialOrd<&RiReferenceStr<T>> for Cow<'_, RiStr<S>>
impl<S, T> PartialOrd<&RiReferenceStr<T>> for Cow<'_, RiStr<S>>
Source§impl<S, T> PartialOrd<&RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<&RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialOrd<&RiRelativeStr<S>> for Cow<'_, RiRelativeStr<T>>
impl<S, T> PartialOrd<&RiRelativeStr<S>> for Cow<'_, RiRelativeStr<T>>
Source§impl<S> PartialOrd<&RiRelativeStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<&RiRelativeStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<&RiStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<&RiStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialOrd<&RiStr<S>> for Cow<'_, RiStr<T>>
impl<S, T> PartialOrd<&RiStr<S>> for Cow<'_, RiStr<T>>
Source§impl<S> PartialOrd<&RiStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<&RiStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<&RiStr<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialOrd<&RiStr<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl PartialOrd<&UriTemplateStr> for Cow<'_, str>
impl PartialOrd<&UriTemplateStr> for Cow<'_, str>
Source§impl<'a, 'b> PartialOrd<&'b Utf8Path> for Cow<'a, Utf8Path>
impl<'a, 'b> PartialOrd<&'b Utf8Path> for Cow<'a, Utf8Path>
Source§impl<'a, 'b> PartialOrd<&'a Utf8Path> for Cow<'b, OsStr>
impl<'a, 'b> PartialOrd<&'a Utf8Path> for Cow<'b, OsStr>
Source§impl<'a, 'b> PartialOrd<&'a Utf8Path> for Cow<'b, Path>
impl<'a, 'b> PartialOrd<&'a Utf8Path> for Cow<'b, Path>
Source§impl<'a, 'b> PartialOrd<&'a Utf8Path> for Cow<'b, str>
impl<'a, 'b> PartialOrd<&'a Utf8Path> for Cow<'b, str>
Source§impl<'a> PartialOrd<ByteString> for Cow<'_, [u8]>
impl<'a> PartialOrd<ByteString> for Cow<'_, [u8]>
Source§impl<'a> PartialOrd<ByteString> for Cow<'_, ByteStr>
impl<'a> PartialOrd<ByteString> for Cow<'_, ByteStr>
Source§impl<'a> PartialOrd<ByteString> for Cow<'_, str>
impl<'a> PartialOrd<ByteString> for Cow<'_, str>
Source§impl PartialOrd<Cow<'_, RawStr>> for &RawStr
impl PartialOrd<Cow<'_, RawStr>> for &RawStr
Source§impl PartialOrd<Cow<'_, RawStr>> for RawStr
impl PartialOrd<Cow<'_, RawStr>> for RawStr
Source§impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for &RiReferenceStr<T>
impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for &RiReferenceStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for &RiStr<T>
impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for &RiStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for RiReferenceStr<T>
impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for RiReferenceStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for RiStr<T>
impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for RiStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<T>>> for &RiAbsoluteStr<S>
impl<S, T> PartialOrd<Cow<'_, RiAbsoluteStr<T>>> for &RiAbsoluteStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
impl<S, T> PartialOrd<Cow<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiQueryStr<T>>> for &RiQueryStr<S>
impl<S, T> PartialOrd<Cow<'_, RiQueryStr<T>>> for &RiQueryStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiAbsoluteStr<S>
impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiAbsoluteStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiReferenceStr<S>
impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiReferenceStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiRelativeStr<S>
impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiRelativeStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiStr<S>
impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &RiStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteStr<S>
impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiRelativeStr<S>
impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiRelativeStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiStr<S>
impl<S, T> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiRelativeStr<S>>> for &RiReferenceStr<T>
impl<S, T> PartialOrd<Cow<'_, RiRelativeStr<S>>> for &RiReferenceStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiRelativeStr<S>>> for RiReferenceStr<T>
impl<S, T> PartialOrd<Cow<'_, RiRelativeStr<S>>> for RiReferenceStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiRelativeStr<T>>> for &RiRelativeStr<S>
impl<S, T> PartialOrd<Cow<'_, RiRelativeStr<T>>> for &RiRelativeStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiStr<S>>> for &RiReferenceStr<T>
impl<S, T> PartialOrd<Cow<'_, RiStr<S>>> for &RiReferenceStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiStr<S>>> for RiReferenceStr<T>
impl<S, T> PartialOrd<Cow<'_, RiStr<S>>> for RiReferenceStr<T>
Source§impl<S, T> PartialOrd<Cow<'_, RiStr<T>>> for &RiAbsoluteStr<S>
impl<S, T> PartialOrd<Cow<'_, RiStr<T>>> for &RiAbsoluteStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiStr<T>>> for &RiStr<S>
impl<S, T> PartialOrd<Cow<'_, RiStr<T>>> for &RiStr<S>
Source§impl<S, T> PartialOrd<Cow<'_, RiStr<T>>> for RiAbsoluteStr<S>
impl<S, T> PartialOrd<Cow<'_, RiStr<T>>> for RiAbsoluteStr<S>
Source§impl PartialOrd<Cow<'_, str>> for &RawStr
impl PartialOrd<Cow<'_, str>> for &RawStr
Source§impl<S> PartialOrd<Cow<'_, str>> for &RiAbsoluteStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for &RiAbsoluteStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for &RiFragmentStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for &RiFragmentStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for &RiQueryStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for &RiQueryStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for &RiReferenceStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for &RiReferenceStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for &RiRelativeStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for &RiRelativeStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for &RiStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for &RiStr<S>where
S: Spec,
Source§impl PartialOrd<Cow<'_, str>> for &UriTemplateStr
impl PartialOrd<Cow<'_, str>> for &UriTemplateStr
Source§impl PartialOrd<Cow<'_, str>> for RawStr
impl PartialOrd<Cow<'_, str>> for RawStr
Source§impl<S> PartialOrd<Cow<'_, str>> for RiAbsoluteStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for RiAbsoluteStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for RiFragmentStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for RiFragmentStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for RiQueryStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for RiQueryStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for RiReferenceStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for RiReferenceStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for RiRelativeStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for RiRelativeStr<S>where
S: Spec,
Source§impl<S> PartialOrd<Cow<'_, str>> for RiStr<S>where
S: Spec,
impl<S> PartialOrd<Cow<'_, str>> for RiStr<S>where
S: Spec,
Source§impl PartialOrd<Cow<'_, str>> for UriTemplateStr
impl PartialOrd<Cow<'_, str>> for UriTemplateStr
1.8.0 · Source§impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for &'b OsStr
impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for &'b OsStr
1.8.0 · Source§impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for OsStr
impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for OsStr
1.8.0 · Source§impl<'a> PartialOrd<Cow<'a, OsStr>> for Path
impl<'a> PartialOrd<Cow<'a, OsStr>> for Path
1.8.0 · Source§impl<'a> PartialOrd<Cow<'a, OsStr>> for PathBuf
impl<'a> PartialOrd<Cow<'a, OsStr>> for PathBuf
Source§impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for Utf8Path
impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for Utf8Path
1.8.0 · Source§impl<'a, 'b> PartialOrd<Cow<'a, Path>> for &'b OsStr
impl<'a, 'b> PartialOrd<Cow<'a, Path>> for &'b OsStr
1.8.0 · Source§impl<'a, 'b> PartialOrd<Cow<'a, Path>> for &'b Path
impl<'a, 'b> PartialOrd<Cow<'a, Path>> for &'b Path
1.8.0 · Source§impl<'a> PartialOrd<Cow<'a, Path>> for OsStr
impl<'a> PartialOrd<Cow<'a, Path>> for OsStr
1.8.0 · Source§impl<'a> PartialOrd<Cow<'a, Path>> for Path
impl<'a> PartialOrd<Cow<'a, Path>> for Path
1.8.0 · Source§impl<'a> PartialOrd<Cow<'a, Path>> for PathBuf
impl<'a> PartialOrd<Cow<'a, Path>> for PathBuf
Source§impl<'a, 'b> PartialOrd<Cow<'a, Path>> for Utf8Path
impl<'a, 'b> PartialOrd<Cow<'a, Path>> for Utf8Path
Source§impl<'a, 'b> PartialOrd<Cow<'a, Utf8Path>> for &'b Utf8Path
impl<'a, 'b> PartialOrd<Cow<'a, Utf8Path>> for &'b Utf8Path
Source§impl<'a, 'b> PartialOrd<Cow<'a, Utf8Path>> for Utf8Path
impl<'a, 'b> PartialOrd<Cow<'a, Utf8Path>> for Utf8Path
Source§impl<'a, 'b> PartialOrd<Cow<'a, str>> for Utf8Path
impl<'a, 'b> PartialOrd<Cow<'a, str>> for Utf8Path
1.8.0 · Source§impl<'a, 'b> PartialOrd<Cow<'b, OsStr>> for &'a Path
impl<'a, 'b> PartialOrd<Cow<'b, OsStr>> for &'a Path
Source§impl<'a, 'b> PartialOrd<Cow<'b, OsStr>> for &'a Utf8Path
impl<'a, 'b> PartialOrd<Cow<'b, OsStr>> for &'a Utf8Path
Source§impl<'a, 'b> PartialOrd<Cow<'b, Path>> for &'a Utf8Path
impl<'a, 'b> PartialOrd<Cow<'b, Path>> for &'a Utf8Path
Source§impl<'a, 'b> PartialOrd<Cow<'b, str>> for &'a Utf8Path
impl<'a, 'b> PartialOrd<Cow<'b, str>> for &'a Utf8Path
1.8.0 · Source§impl<'a, 'b> PartialOrd<OsStr> for Cow<'a, OsStr>
impl<'a, 'b> PartialOrd<OsStr> for Cow<'a, OsStr>
1.8.0 · Source§impl<'a> PartialOrd<OsStr> for Cow<'a, Path>
impl<'a> PartialOrd<OsStr> for Cow<'a, Path>
1.8.0 · Source§impl<'a, 'b> PartialOrd<OsString> for Cow<'a, OsStr>
impl<'a, 'b> PartialOrd<OsString> for Cow<'a, OsStr>
1.8.0 · Source§impl<'a> PartialOrd<OsString> for Cow<'a, Path>
impl<'a> PartialOrd<OsString> for Cow<'a, Path>
1.8.0 · Source§impl<'a> PartialOrd<Path> for Cow<'a, OsStr>
impl<'a> PartialOrd<Path> for Cow<'a, OsStr>
1.8.0 · Source§impl<'a> PartialOrd<Path> for Cow<'a, Path>
impl<'a> PartialOrd<Path> for Cow<'a, Path>
1.8.0 · Source§impl<'a> PartialOrd<PathBuf> for Cow<'a, OsStr>
impl<'a> PartialOrd<PathBuf> for Cow<'a, OsStr>
1.8.0 · Source§impl<'a> PartialOrd<PathBuf> for Cow<'a, Path>
impl<'a> PartialOrd<PathBuf> for Cow<'a, Path>
Source§impl PartialOrd<RawStr> for Cow<'_, RawStr>
impl PartialOrd<RawStr> for Cow<'_, RawStr>
Source§impl PartialOrd<RawStr> for Cow<'_, str>
impl PartialOrd<RawStr> for Cow<'_, str>
Source§impl<S, T> PartialOrd<RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<RiAbsoluteStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialOrd<RiAbsoluteStr<S>> for Cow<'_, RiStr<T>>
impl<S, T> PartialOrd<RiAbsoluteStr<S>> for Cow<'_, RiStr<T>>
Source§impl<S> PartialOrd<RiAbsoluteStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiAbsoluteStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S, T> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiStr<T>>
impl<S, T> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiStr<T>>
Source§impl<S> PartialOrd<RiAbsoluteString<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiAbsoluteString<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialOrd<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S> PartialOrd<RiFragmentStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiFragmentStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S> PartialOrd<RiFragmentString<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiFragmentString<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiFragmentString<T>> for Cow<'_, RiFragmentStr<S>>
impl<S, T> PartialOrd<RiFragmentString<T>> for Cow<'_, RiFragmentStr<S>>
Source§impl<S> PartialOrd<RiQueryStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiQueryStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S> PartialOrd<RiQueryString<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiQueryString<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiQueryString<T>> for Cow<'_, RiQueryStr<S>>
impl<S, T> PartialOrd<RiQueryString<T>> for Cow<'_, RiQueryStr<S>>
Source§impl<S> PartialOrd<RiReferenceStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiReferenceStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialOrd<RiReferenceStr<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialOrd<RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialOrd<RiReferenceStr<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<S, T> PartialOrd<RiReferenceStr<T>> for Cow<'_, RiStr<S>>
impl<S, T> PartialOrd<RiReferenceStr<T>> for Cow<'_, RiStr<S>>
Source§impl<S> PartialOrd<RiReferenceString<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiReferenceString<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiReferenceStr<S>>
impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiReferenceStr<S>>
Source§impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiStr<S>>
impl<S, T> PartialOrd<RiReferenceString<T>> for Cow<'_, RiStr<S>>
Source§impl<S, T> PartialOrd<RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S> PartialOrd<RiRelativeStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiRelativeStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiRelativeString<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<RiRelativeString<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S> PartialOrd<RiRelativeString<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiRelativeString<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiRelativeString<T>> for Cow<'_, RiRelativeStr<S>>
impl<S, T> PartialOrd<RiRelativeString<T>> for Cow<'_, RiRelativeStr<S>>
Source§impl<S, T> PartialOrd<RiStr<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<RiStr<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S> PartialOrd<RiStr<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiStr<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiStr<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialOrd<RiStr<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialOrd<RiString<S>> for Cow<'_, RiReferenceStr<T>>
impl<S, T> PartialOrd<RiString<S>> for Cow<'_, RiReferenceStr<T>>
Source§impl<S> PartialOrd<RiString<S>> for Cow<'_, str>where
S: Spec,
impl<S> PartialOrd<RiString<S>> for Cow<'_, str>where
S: Spec,
Source§impl<S, T> PartialOrd<RiString<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S, T> PartialOrd<RiString<T>> for Cow<'_, RiAbsoluteStr<S>>
Source§impl<S, T> PartialOrd<RiString<T>> for Cow<'_, RiStr<S>>
impl<S, T> PartialOrd<RiString<T>> for Cow<'_, RiStr<S>>
Source§impl PartialOrd<UriTemplateStr> for Cow<'_, str>
impl PartialOrd<UriTemplateStr> for Cow<'_, str>
Source§impl PartialOrd<UriTemplateString> for Cow<'_, str>
impl PartialOrd<UriTemplateString> for Cow<'_, str>
Source§impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, OsStr>
impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, OsStr>
Source§impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, Path>
impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, Path>
Source§impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, Utf8Path>
impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, Utf8Path>
Source§impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, str>
impl<'a, 'b> PartialOrd<Utf8Path> for Cow<'a, str>
Source§impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, OsStr>
impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, OsStr>
Source§impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, Path>
impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, Path>
Source§impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, Utf8Path>
impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, Utf8Path>
Source§impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, str>
impl<'a, 'b> PartialOrd<Utf8PathBuf> for Cow<'a, str>
1.0.0 · Source§impl<'a, B> PartialOrd for Cow<'a, B>
impl<'a, B> PartialOrd for Cow<'a, B>
Source§impl<'a> Replacer for &'a Cow<'a, [u8]>
impl<'a> Replacer for &'a Cow<'a, [u8]>
Source§fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)
dst to replace the current match. Read moreSource§fn no_expansion(&mut self) -> Option<Cow<'_, [u8]>>
fn no_expansion(&mut self) -> Option<Cow<'_, [u8]>>
Source§fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
Source§impl<'a> Replacer for &'a Cow<'a, str>
impl<'a> Replacer for &'a Cow<'a, str>
Source§fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)
dst to replace the current match. Read moreSource§fn no_expansion(&mut self) -> Option<Cow<'_, str>>
fn no_expansion(&mut self) -> Option<Cow<'_, str>>
Source§fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
Source§impl<'a> Replacer for Cow<'a, [u8]>
impl<'a> Replacer for Cow<'a, [u8]>
Source§fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)
dst to replace the current match. Read moreSource§fn no_expansion(&mut self) -> Option<Cow<'_, [u8]>>
fn no_expansion(&mut self) -> Option<Cow<'_, [u8]>>
Source§fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
Source§impl<'a> Replacer for Cow<'a, str>
impl<'a> Replacer for Cow<'a, str>
Source§fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)
dst to replace the current match. Read moreSource§fn no_expansion(&mut self) -> Option<Cow<'_, str>>
fn no_expansion(&mut self) -> Option<Cow<'_, str>>
Source§fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
Source§impl<C> RequestConnection for Cow<'_, C>
impl<C> RequestConnection for Cow<'_, C>
Source§type Buf = <C as RequestConnection>::Buf
type Buf = <C as RequestConnection>::Buf
Source§fn send_request_with_reply<R>(
&self,
bufs: &[IoSlice<'_>],
fds: Vec<OwnedFd>,
) -> Result<Cookie<'_, Cow<'_, C>, R>, ConnectionError>where
R: TryParse,
fn send_request_with_reply<R>(
&self,
bufs: &[IoSlice<'_>],
fds: Vec<OwnedFd>,
) -> Result<Cookie<'_, Cow<'_, C>, R>, ConnectionError>where
R: TryParse,
Source§fn send_trait_request_with_reply<R>(
&self,
request: R,
) -> Result<Cookie<'_, Cow<'_, C>, <R as ReplyRequest>::Reply>, ConnectionError>where
R: ReplyRequest,
fn send_trait_request_with_reply<R>(
&self,
request: R,
) -> Result<Cookie<'_, Cow<'_, C>, <R as ReplyRequest>::Reply>, ConnectionError>where
R: ReplyRequest,
Source§fn send_request_with_reply_with_fds<R>(
&self,
bufs: &[IoSlice<'_>],
fds: Vec<OwnedFd>,
) -> Result<CookieWithFds<'_, Cow<'_, C>, R>, ConnectionError>where
R: TryParseFd,
fn send_request_with_reply_with_fds<R>(
&self,
bufs: &[IoSlice<'_>],
fds: Vec<OwnedFd>,
) -> Result<CookieWithFds<'_, Cow<'_, C>, R>, ConnectionError>where
R: TryParseFd,
Source§fn send_trait_request_with_reply_with_fds<R>(
&self,
request: R,
) -> Result<CookieWithFds<'_, Cow<'_, C>, <R as ReplyFDsRequest>::Reply>, ConnectionError>where
R: ReplyFDsRequest,
fn send_trait_request_with_reply_with_fds<R>(
&self,
request: R,
) -> Result<CookieWithFds<'_, Cow<'_, C>, <R as ReplyFDsRequest>::Reply>, ConnectionError>where
R: ReplyFDsRequest,
Source§fn send_request_without_reply(
&self,
bufs: &[IoSlice<'_>],
fds: Vec<OwnedFd>,
) -> Result<VoidCookie<'_, Cow<'_, C>>, ConnectionError>
fn send_request_without_reply( &self, bufs: &[IoSlice<'_>], fds: Vec<OwnedFd>, ) -> Result<VoidCookie<'_, Cow<'_, C>>, ConnectionError>
Source§fn send_trait_request_without_reply<R>(
&self,
request: R,
) -> Result<VoidCookie<'_, Cow<'_, C>>, ConnectionError>where
R: VoidRequest,
fn send_trait_request_without_reply<R>(
&self,
request: R,
) -> Result<VoidCookie<'_, Cow<'_, C>>, ConnectionError>where
R: VoidRequest,
Source§fn discard_reply(&self, sequence: u64, kind: RequestKind, mode: DiscardMode)
fn discard_reply(&self, sequence: u64, kind: RequestKind, mode: DiscardMode)
Source§fn prefetch_extension_information(
&self,
extension_name: &'static str,
) -> Result<(), ConnectionError>
fn prefetch_extension_information( &self, extension_name: &'static str, ) -> Result<(), ConnectionError>
Source§fn extension_information(
&self,
extension_name: &'static str,
) -> Result<Option<ExtensionInformation>, ConnectionError>
fn extension_information( &self, extension_name: &'static str, ) -> Result<Option<ExtensionInformation>, ConnectionError>
Source§fn wait_for_reply_or_error(
&self,
sequence: u64,
) -> Result<<Cow<'_, C> as RequestConnection>::Buf, ReplyError>
fn wait_for_reply_or_error( &self, sequence: u64, ) -> Result<<Cow<'_, C> as RequestConnection>::Buf, ReplyError>
Source§fn wait_for_reply_or_raw_error(
&self,
sequence: u64,
) -> Result<ReplyOrError<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
fn wait_for_reply_or_raw_error( &self, sequence: u64, ) -> Result<ReplyOrError<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
Source§fn wait_for_reply(
&self,
sequence: u64,
) -> Result<Option<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
fn wait_for_reply( &self, sequence: u64, ) -> Result<Option<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
Source§fn wait_for_reply_with_fds(
&self,
sequence: u64,
) -> Result<(<Cow<'_, C> as RequestConnection>::Buf, Vec<OwnedFd>), ReplyError>
fn wait_for_reply_with_fds( &self, sequence: u64, ) -> Result<(<Cow<'_, C> as RequestConnection>::Buf, Vec<OwnedFd>), ReplyError>
Source§fn wait_for_reply_with_fds_raw(
&self,
sequence: u64,
) -> Result<ReplyOrError<(<Cow<'_, C> as RequestConnection>::Buf, Vec<OwnedFd>), <Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
fn wait_for_reply_with_fds_raw( &self, sequence: u64, ) -> Result<ReplyOrError<(<Cow<'_, C> as RequestConnection>::Buf, Vec<OwnedFd>), <Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
Source§fn check_for_error(&self, sequence: u64) -> Result<(), ReplyError>
fn check_for_error(&self, sequence: u64) -> Result<(), ReplyError>
Source§fn check_for_raw_error(
&self,
sequence: u64,
) -> Result<Option<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
fn check_for_raw_error( &self, sequence: u64, ) -> Result<Option<<Cow<'_, C> as RequestConnection>::Buf>, ConnectionError>
Source§fn prefetch_maximum_request_bytes(&self)
fn prefetch_maximum_request_bytes(&self)
Source§fn maximum_request_bytes(&self) -> usize
fn maximum_request_bytes(&self) -> usize
Source§fn parse_error(&self, error: &[u8]) -> Result<X11Error, ParseError>
fn parse_error(&self, error: &[u8]) -> Result<X11Error, ParseError>
Source§fn parse_event(&self, event: &[u8]) -> Result<Event, ParseError>
fn parse_event(&self, event: &[u8]) -> Result<Event, ParseError>
Source§impl<'a, T> Serialize for Cow<'a, T>
impl<'a, T> Serialize for Cow<'a, T>
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Source§impl<P> UriDisplay<P> for Cow<'_, str>where
P: Part,
Percent-encodes the raw string. Defers to str.
impl<P> UriDisplay<P> for Cow<'_, str>where
P: Part,
Percent-encodes the raw string. Defers to str.
Source§impl WriteTomlKey for Cow<'_, str>
impl WriteTomlKey for Cow<'_, str>
Source§impl WriteTomlValue for Cow<'_, str>
impl WriteTomlValue for Cow<'_, str>
Source§impl<'a, T> Writeable for Cow<'a, T>
impl<'a, T> Writeable for Cow<'a, T>
Source§fn write_to<W>(&self, sink: &mut W) -> Result<(), Error>
fn write_to<W>(&self, sink: &mut W) -> Result<(), Error>
write_to_parts, and discards any
Part annotations.Source§fn write_to_parts<W>(&self, sink: &mut W) -> Result<(), Error>where
W: PartsWrite + ?Sized,
fn write_to_parts<W>(&self, sink: &mut W) -> Result<(), Error>where
W: PartsWrite + ?Sized,
Part annotations to the given sink. Errors from the
sink are bubbled up. The default implementation delegates to write_to,
and doesn’t produce any Part annotations.Source§fn writeable_length_hint(&self) -> LengthHint
fn writeable_length_hint(&self) -> LengthHint
Source§impl<'a, T> Yokeable<'a> for Cow<'static, T>
impl<'a, T> Yokeable<'a> for Cow<'static, T>
Source§type Output = Cow<'a, T>
type Output = Cow<'a, T>
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Cow<'a, T>
fn transform_owned(self) -> Cow<'a, T>
impl<T> DerefPure for Cow<'_, [T]>where
T: Clone,
impl<T> DerefPure for Cow<'_, T>where
T: Clone,
impl DerefPure for Cow<'_, str>
impl<B> Eq for Cow<'_, B>
Auto Trait Implementations§
impl<'a, B> Freeze for Cow<'a, B>
impl<'a, B> RefUnwindSafe for Cow<'a, B>
impl<'a, B> Send for Cow<'a, B>
impl<'a, B> Sync for Cow<'a, B>
impl<'a, B> Unpin for Cow<'a, B>
impl<'a, B> UnwindSafe for Cow<'a, B>
Blanket Implementations§
Source§impl<T> AsUncased for T
impl<T> AsUncased for T
Source§fn as_uncased(&self) -> &UncasedStr
fn as_uncased(&self) -> &UncasedStr
self to an UncasedStr.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<C> ConnectionExt for Cwhere
C: ConnectionExt + ?Sized,
impl<C> ConnectionExt for Cwhere
C: ConnectionExt + ?Sized,
Source§fn change_property8<A, B>(
&self,
mode: PropMode,
window: u32,
property: A,
type_: B,
data: &[u8],
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_property8<A, B>( &self, mode: PropMode, window: u32, property: A, type_: B, data: &[u8], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn change_property16<A, B>(
&self,
mode: PropMode,
window: u32,
property: A,
type_: B,
data: &[u16],
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_property16<A, B>( &self, mode: PropMode, window: u32, property: A, type_: B, data: &[u16], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn change_property32<A, B>(
&self,
mode: PropMode,
window: u32,
property: A,
type_: B,
data: &[u32],
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_property32<A, B>( &self, mode: PropMode, window: u32, property: A, type_: B, data: &[u32], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
Source§fn create_window<'c, 'input>(
&'c self,
depth: u8,
wid: u32,
parent: u32,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
class: WindowClass,
visual: u32,
value_list: &'input CreateWindowAux,
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn create_window<'c, 'input>( &'c self, depth: u8, wid: u32, parent: u32, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, visual: u32, value_list: &'input CreateWindowAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn change_window_attributes<'c, 'input>(
&'c self,
window: u32,
value_list: &'input ChangeWindowAttributesAux,
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn change_window_attributes<'c, 'input>( &'c self, window: u32, value_list: &'input ChangeWindowAttributesAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn get_window_attributes(
&self,
window: u32,
) -> Result<Cookie<'_, Self, GetWindowAttributesReply>, ConnectionError>
fn get_window_attributes( &self, window: u32, ) -> Result<Cookie<'_, Self, GetWindowAttributesReply>, ConnectionError>
Source§fn destroy_window(
&self,
window: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn destroy_window( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn destroy_subwindows( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn change_save_set(
&self,
mode: SetMode,
window: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_save_set( &self, mode: SetMode, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn reparent_window(
&self,
window: u32,
parent: u32,
x: i16,
y: i16,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn reparent_window( &self, window: u32, parent: u32, x: i16, y: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn map_window(
&self,
window: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn map_window( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn map_subwindows( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn unmap_window(
&self,
window: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn unmap_window( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn unmap_subwindows( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn configure_window<'c, 'input>(
&'c self,
window: u32,
value_list: &'input ConfigureWindowAux,
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn configure_window<'c, 'input>( &'c self, window: u32, value_list: &'input ConfigureWindowAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn circulate_window(
&self,
direction: Circulate,
window: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn circulate_window( &self, direction: Circulate, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn get_geometry(
&self,
drawable: u32,
) -> Result<Cookie<'_, Self, GetGeometryReply>, ConnectionError>
fn get_geometry( &self, drawable: u32, ) -> Result<Cookie<'_, Self, GetGeometryReply>, ConnectionError>
Source§fn query_tree(
&self,
window: u32,
) -> Result<Cookie<'_, Self, QueryTreeReply>, ConnectionError>
fn query_tree( &self, window: u32, ) -> Result<Cookie<'_, Self, QueryTreeReply>, ConnectionError>
Source§fn intern_atom<'c, 'input>(
&'c self,
only_if_exists: bool,
name: &'input [u8],
) -> Result<Cookie<'c, Self, InternAtomReply>, ConnectionError>
fn intern_atom<'c, 'input>( &'c self, only_if_exists: bool, name: &'input [u8], ) -> Result<Cookie<'c, Self, InternAtomReply>, ConnectionError>
fn get_atom_name( &self, atom: u32, ) -> Result<Cookie<'_, Self, GetAtomNameReply>, ConnectionError>
Source§fn change_property<'c, 'input, A, B>(
&'c self,
mode: PropMode,
window: u32,
property: A,
type_: B,
format: u8,
data_len: u32,
data: &'input [u8],
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn change_property<'c, 'input, A, B>( &'c self, mode: PropMode, window: u32, property: A, type_: B, format: u8, data_len: u32, data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn delete_property( &self, window: u32, property: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn get_property<A, B>(
&self,
delete: bool,
window: u32,
property: A,
type_: B,
long_offset: u32,
long_length: u32,
) -> Result<Cookie<'_, Self, GetPropertyReply>, ConnectionError>
fn get_property<A, B>( &self, delete: bool, window: u32, property: A, type_: B, long_offset: u32, long_length: u32, ) -> Result<Cookie<'_, Self, GetPropertyReply>, ConnectionError>
fn list_properties( &self, window: u32, ) -> Result<Cookie<'_, Self, ListPropertiesReply>, ConnectionError>
Source§fn set_selection_owner<A, B>(
&self,
owner: A,
selection: u32,
time: B,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn set_selection_owner<A, B>( &self, owner: A, selection: u32, time: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn get_selection_owner(
&self,
selection: u32,
) -> Result<Cookie<'_, Self, GetSelectionOwnerReply>, ConnectionError>
fn get_selection_owner( &self, selection: u32, ) -> Result<Cookie<'_, Self, GetSelectionOwnerReply>, ConnectionError>
fn convert_selection<A, B>( &self, requestor: u32, selection: u32, target: u32, property: A, time: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn send_event<A, B>(
&self,
propagate: bool,
destination: A,
event_mask: EventMask,
event: B,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn send_event<A, B>( &self, propagate: bool, destination: A, event_mask: EventMask, event: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn grab_pointer<A, B, C>(
&self,
owner_events: bool,
grab_window: u32,
event_mask: EventMask,
pointer_mode: GrabMode,
keyboard_mode: GrabMode,
confine_to: A,
cursor: B,
time: C,
) -> Result<Cookie<'_, Self, GrabPointerReply>, ConnectionError>
fn grab_pointer<A, B, C>( &self, owner_events: bool, grab_window: u32, event_mask: EventMask, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: A, cursor: B, time: C, ) -> Result<Cookie<'_, Self, GrabPointerReply>, ConnectionError>
Source§fn ungrab_pointer<A>(
&self,
time: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn ungrab_pointer<A>( &self, time: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_active_pointer_grab<A, B>( &self, cursor: A, time: B, event_mask: EventMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn grab_keyboard<A>(
&self,
owner_events: bool,
grab_window: u32,
time: A,
pointer_mode: GrabMode,
keyboard_mode: GrabMode,
) -> Result<Cookie<'_, Self, GrabKeyboardReply>, ConnectionError>
fn grab_keyboard<A>( &self, owner_events: bool, grab_window: u32, time: A, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<Cookie<'_, Self, GrabKeyboardReply>, ConnectionError>
fn ungrab_keyboard<A>( &self, time: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn grab_key<A>(
&self,
owner_events: bool,
grab_window: u32,
modifiers: ModMask,
key: A,
pointer_mode: GrabMode,
keyboard_mode: GrabMode,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn grab_key<A>( &self, owner_events: bool, grab_window: u32, modifiers: ModMask, key: A, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn ungrab_key<A>(
&self,
key: A,
grab_window: u32,
modifiers: ModMask,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn ungrab_key<A>( &self, key: A, grab_window: u32, modifiers: ModMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn allow_events<A>(
&self,
mode: Allow,
time: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn allow_events<A>( &self, mode: Allow, time: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn grab_server(&self) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn ungrab_server(&self) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn query_pointer(
&self,
window: u32,
) -> Result<Cookie<'_, Self, QueryPointerReply>, ConnectionError>
fn query_pointer( &self, window: u32, ) -> Result<Cookie<'_, Self, QueryPointerReply>, ConnectionError>
fn get_motion_events<A, B>( &self, window: u32, start: A, stop: B, ) -> Result<Cookie<'_, Self, GetMotionEventsReply>, ConnectionError>
fn translate_coordinates( &self, src_window: u32, dst_window: u32, src_x: i16, src_y: i16, ) -> Result<Cookie<'_, Self, TranslateCoordinatesReply>, ConnectionError>
Source§fn warp_pointer<A, B>(
&self,
src_window: A,
dst_window: B,
src_x: i16,
src_y: i16,
src_width: u16,
src_height: u16,
dst_x: i16,
dst_y: i16,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn warp_pointer<A, B>( &self, src_window: A, dst_window: B, src_x: i16, src_y: i16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn set_input_focus<A, B>(
&self,
revert_to: InputFocus,
focus: A,
time: B,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn set_input_focus<A, B>( &self, revert_to: InputFocus, focus: A, time: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn get_input_focus( &self, ) -> Result<Cookie<'_, Self, GetInputFocusReply>, ConnectionError>
fn query_keymap( &self, ) -> Result<Cookie<'_, Self, QueryKeymapReply>, ConnectionError>
Source§fn open_font<'c, 'input>(
&'c self,
fid: u32,
name: &'input [u8],
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn open_font<'c, 'input>( &'c self, fid: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn close_font(&self, font: u32) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn query_font(
&self,
font: u32,
) -> Result<Cookie<'_, Self, QueryFontReply>, ConnectionError>
fn query_font( &self, font: u32, ) -> Result<Cookie<'_, Self, QueryFontReply>, ConnectionError>
Source§fn query_text_extents<'c, 'input>(
&'c self,
font: u32,
string: &'input [Char2b],
) -> Result<Cookie<'c, Self, QueryTextExtentsReply>, ConnectionError>
fn query_text_extents<'c, 'input>( &'c self, font: u32, string: &'input [Char2b], ) -> Result<Cookie<'c, Self, QueryTextExtentsReply>, ConnectionError>
Source§fn list_fonts<'c, 'input>(
&'c self,
max_names: u16,
pattern: &'input [u8],
) -> Result<Cookie<'c, Self, ListFontsReply>, ConnectionError>
fn list_fonts<'c, 'input>( &'c self, max_names: u16, pattern: &'input [u8], ) -> Result<Cookie<'c, Self, ListFontsReply>, ConnectionError>
Source§fn list_fonts_with_info<'c, 'input>(
&'c self,
max_names: u16,
pattern: &'input [u8],
) -> Result<ListFontsWithInfoCookie<'c, Self>, ConnectionError>
fn list_fonts_with_info<'c, 'input>( &'c self, max_names: u16, pattern: &'input [u8], ) -> Result<ListFontsWithInfoCookie<'c, Self>, ConnectionError>
fn set_font_path<'c, 'input>( &'c self, font: &'input [Str], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn get_font_path( &self, ) -> Result<Cookie<'_, Self, GetFontPathReply>, ConnectionError>
Source§fn create_pixmap(
&self,
depth: u8,
pid: u32,
drawable: u32,
width: u16,
height: u16,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn create_pixmap( &self, depth: u8, pid: u32, drawable: u32, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn free_pixmap(
&self,
pixmap: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn free_pixmap( &self, pixmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn create_gc<'c, 'input>(
&'c self,
cid: u32,
drawable: u32,
value_list: &'input CreateGCAux,
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn create_gc<'c, 'input>( &'c self, cid: u32, drawable: u32, value_list: &'input CreateGCAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn change_gc<'c, 'input>(
&'c self,
gc: u32,
value_list: &'input ChangeGCAux,
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn change_gc<'c, 'input>( &'c self, gc: u32, value_list: &'input ChangeGCAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn copy_gc( &self, src_gc: u32, dst_gc: u32, value_mask: GC, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn set_dashes<'c, 'input>( &'c self, gc: u32, dash_offset: u16, dashes: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn set_clip_rectangles<'c, 'input>( &'c self, ordering: ClipOrdering, gc: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn free_gc(&self, gc: u32) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn free_gc(&self, gc: u32) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn clear_area( &self, exposures: bool, window: u32, x: i16, y: i16, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn copy_area(
&self,
src_drawable: u32,
dst_drawable: u32,
gc: u32,
src_x: i16,
src_y: i16,
dst_x: i16,
dst_y: i16,
width: u16,
height: u16,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn copy_area( &self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn copy_plane( &self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, bit_plane: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn poly_point<'c, 'input>( &'c self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: &'input [Point], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn poly_line<'c, 'input>(
&'c self,
coordinate_mode: CoordMode,
drawable: u32,
gc: u32,
points: &'input [Point],
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn poly_line<'c, 'input>( &'c self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: &'input [Point], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn poly_segment<'c, 'input>(
&'c self,
drawable: u32,
gc: u32,
segments: &'input [Segment],
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn poly_segment<'c, 'input>( &'c self, drawable: u32, gc: u32, segments: &'input [Segment], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn poly_rectangle<'c, 'input>( &'c self, drawable: u32, gc: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn poly_arc<'c, 'input>( &'c self, drawable: u32, gc: u32, arcs: &'input [Arc], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn fill_poly<'c, 'input>( &'c self, drawable: u32, gc: u32, shape: PolyShape, coordinate_mode: CoordMode, points: &'input [Point], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn poly_fill_rectangle<'c, 'input>(
&'c self,
drawable: u32,
gc: u32,
rectangles: &'input [Rectangle],
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn poly_fill_rectangle<'c, 'input>( &'c self, drawable: u32, gc: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn poly_fill_arc<'c, 'input>( &'c self, drawable: u32, gc: u32, arcs: &'input [Arc], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn put_image<'c, 'input>( &'c self, format: ImageFormat, drawable: u32, gc: u32, width: u16, height: u16, dst_x: i16, dst_y: i16, left_pad: u8, depth: u8, data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn get_image( &self, format: ImageFormat, drawable: u32, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, ) -> Result<Cookie<'_, Self, GetImageReply>, ConnectionError>
fn poly_text8<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, items: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn poly_text16<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, items: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn image_text8<'c, 'input>(
&'c self,
drawable: u32,
gc: u32,
x: i16,
y: i16,
string: &'input [u8],
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn image_text8<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, string: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§fn image_text16<'c, 'input>(
&'c self,
drawable: u32,
gc: u32,
x: i16,
y: i16,
string: &'input [Char2b],
) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn image_text16<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, string: &'input [Char2b], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn create_colormap( &self, alloc: ColormapAlloc, mid: u32, window: u32, visual: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn free_colormap( &self, cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn copy_colormap_and_free( &self, mid: u32, src_cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn install_colormap( &self, cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn uninstall_colormap( &self, cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn list_installed_colormaps( &self, window: u32, ) -> Result<Cookie<'_, Self, ListInstalledColormapsReply>, ConnectionError>
Source§fn alloc_color(
&self,
cmap: u32,
red: u16,
green: u16,
blue: u16,
) -> Result<Cookie<'_, Self, AllocColorReply>, ConnectionError>
fn alloc_color( &self, cmap: u32, red: u16, green: u16, blue: u16, ) -> Result<Cookie<'_, Self, AllocColorReply>, ConnectionError>
fn alloc_named_color<'c, 'input>( &'c self, cmap: u32, name: &'input [u8], ) -> Result<Cookie<'c, Self, AllocNamedColorReply>, ConnectionError>
fn alloc_color_cells( &self, contiguous: bool, cmap: u32, colors: u16, planes: u16, ) -> Result<Cookie<'_, Self, AllocColorCellsReply>, ConnectionError>
fn alloc_color_planes( &self, contiguous: bool, cmap: u32, colors: u16, reds: u16, greens: u16, blues: u16, ) -> Result<Cookie<'_, Self, AllocColorPlanesReply>, ConnectionError>
fn free_colors<'c, 'input>( &'c self, cmap: u32, plane_mask: u32, pixels: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn store_colors<'c, 'input>( &'c self, cmap: u32, items: &'input [Coloritem], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn store_named_color<'c, 'input>( &'c self, flags: ColorFlag, cmap: u32, pixel: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn query_colors<'c, 'input>( &'c self, cmap: u32, pixels: &'input [u32], ) -> Result<Cookie<'c, Self, QueryColorsReply>, ConnectionError>
fn lookup_color<'c, 'input>( &'c self, cmap: u32, name: &'input [u8], ) -> Result<Cookie<'c, Self, LookupColorReply>, ConnectionError>
fn create_cursor<A>( &self, cid: u32, source: u32, mask: A, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, x: u16, y: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn create_glyph_cursor<A>(
&self,
cid: u32,
source_font: u32,
mask_font: A,
source_char: u16,
mask_char: u16,
fore_red: u16,
fore_green: u16,
fore_blue: u16,
back_red: u16,
back_green: u16,
back_blue: u16,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn create_glyph_cursor<A>( &self, cid: u32, source_font: u32, mask_font: A, source_char: u16, mask_char: u16, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn free_cursor(
&self,
cursor: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn free_cursor( &self, cursor: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn recolor_cursor( &self, cursor: u32, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn query_best_size( &self, class: QueryShapeOf, drawable: u32, width: u16, height: u16, ) -> Result<Cookie<'_, Self, QueryBestSizeReply>, ConnectionError>
Source§fn query_extension<'c, 'input>(
&'c self,
name: &'input [u8],
) -> Result<Cookie<'c, Self, QueryExtensionReply>, ConnectionError>
fn query_extension<'c, 'input>( &'c self, name: &'input [u8], ) -> Result<Cookie<'c, Self, QueryExtensionReply>, ConnectionError>
fn list_extensions( &self, ) -> Result<Cookie<'_, Self, ListExtensionsReply>, ConnectionError>
fn change_keyboard_mapping<'c, 'input>( &'c self, keycode_count: u8, first_keycode: u8, keysyms_per_keycode: u8, keysyms: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn get_keyboard_mapping( &self, first_keycode: u8, count: u8, ) -> Result<Cookie<'_, Self, GetKeyboardMappingReply>, ConnectionError>
fn change_keyboard_control<'c, 'input>( &'c self, value_list: &'input ChangeKeyboardControlAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn get_keyboard_control( &self, ) -> Result<Cookie<'_, Self, GetKeyboardControlReply>, ConnectionError>
fn bell(&self, percent: i8) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_pointer_control( &self, acceleration_numerator: i16, acceleration_denominator: i16, threshold: i16, do_acceleration: bool, do_threshold: bool, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn get_pointer_control( &self, ) -> Result<Cookie<'_, Self, GetPointerControlReply>, ConnectionError>
fn set_screen_saver( &self, timeout: i16, interval: i16, prefer_blanking: Blanking, allow_exposures: Exposures, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn get_screen_saver( &self, ) -> Result<Cookie<'_, Self, GetScreenSaverReply>, ConnectionError>
fn change_hosts<'c, 'input>( &'c self, mode: HostMode, family: Family, address: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn list_hosts( &self, ) -> Result<Cookie<'_, Self, ListHostsReply>, ConnectionError>
fn set_access_control( &self, mode: AccessControl, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn set_close_down_mode( &self, mode: CloseDown, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn kill_client<A>(
&self,
resource: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn kill_client<A>( &self, resource: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn rotate_properties<'c, 'input>( &'c self, window: u32, delta: i16, atoms: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn force_screen_saver( &self, mode: ScreenSaver, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn set_pointer_mapping<'c, 'input>( &'c self, map: &'input [u8], ) -> Result<Cookie<'c, Self, SetPointerMappingReply>, ConnectionError>
fn get_pointer_mapping( &self, ) -> Result<Cookie<'_, Self, GetPointerMappingReply>, ConnectionError>
fn set_modifier_mapping<'c, 'input>( &'c self, keycodes: &'input [u8], ) -> Result<Cookie<'c, Self, SetModifierMappingReply>, ConnectionError>
fn get_modifier_mapping( &self, ) -> Result<Cookie<'_, Self, GetModifierMappingReply>, ConnectionError>
fn no_operation(&self) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
Source§fn bigreq_enable(
&self,
) -> Result<Cookie<'_, Self, EnableReply>, ConnectionError>
fn bigreq_enable( &self, ) -> Result<Cookie<'_, Self, EnableReply>, ConnectionError>
Source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
fn ge_query_version( &self, client_major_version: u16, client_minor_version: u16, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>
Source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
fn render_query_version( &self, client_major_version: u32, client_minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>
fn render_query_pict_formats( &self, ) -> Result<Cookie<'_, Self, QueryPictFormatsReply>, ConnectionError>
fn render_query_pict_index_values( &self, format: u32, ) -> Result<Cookie<'_, Self, QueryPictIndexValuesReply>, ConnectionError>
fn render_create_picture<'c, 'input>( &'c self, pid: u32, drawable: u32, format: u32, value_list: &'input CreatePictureAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_change_picture<'c, 'input>( &'c self, picture: u32, value_list: &'input ChangePictureAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_set_picture_clip_rectangles<'c, 'input>( &'c self, picture: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_free_picture( &self, picture: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_composite<A>( &self, op: PictOp, src: u32, mask: A, dst: u32, src_x: i16, src_y: i16, mask_x: i16, mask_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_trapezoids<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, traps: &'input [Trapezoid], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_triangles<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, triangles: &'input [Triangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_tri_strip<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, points: &'input [Pointfix], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_tri_fan<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, points: &'input [Pointfix], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_create_glyph_set( &self, gsid: u32, format: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_reference_glyph_set( &self, gsid: u32, existing: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_free_glyph_set( &self, glyphset: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_add_glyphs<'c, 'input>( &'c self, glyphset: u32, glyphids: &'input [u32], glyphs: &'input [Glyphinfo], data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_free_glyphs<'c, 'input>( &'c self, glyphset: u32, glyphs: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_composite_glyphs8<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, glyphset: u32, src_x: i16, src_y: i16, glyphcmds: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_composite_glyphs16<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, glyphset: u32, src_x: i16, src_y: i16, glyphcmds: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_composite_glyphs32<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, glyphset: u32, src_x: i16, src_y: i16, glyphcmds: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_fill_rectangles<'c, 'input>( &'c self, op: PictOp, dst: u32, color: Color, rects: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_create_cursor( &self, cid: u32, source: u32, x: u16, y: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_set_picture_transform( &self, picture: u32, transform: Transform, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_query_filters( &self, drawable: u32, ) -> Result<Cookie<'_, Self, QueryFiltersReply>, ConnectionError>
fn render_set_picture_filter<'c, 'input>( &'c self, picture: u32, filter: &'input [u8], values: &'input [i32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_create_anim_cursor<'c, 'input>( &'c self, cid: u32, cursors: &'input [Animcursorelt], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_add_traps<'c, 'input>( &'c self, picture: u32, x_off: i16, y_off: i16, traps: &'input [Trap], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_create_solid_fill( &self, picture: u32, color: Color, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn render_create_linear_gradient<'c, 'input>( &'c self, picture: u32, p1: Pointfix, p2: Pointfix, stops: &'input [i32], colors: &'input [Color], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_create_radial_gradient<'c, 'input>( &'c self, picture: u32, inner: Pointfix, outer: Pointfix, inner_radius: i32, outer_radius: i32, stops: &'input [i32], colors: &'input [Color], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn render_create_conical_gradient<'c, 'input>( &'c self, picture: u32, center: Pointfix, angle: i32, stops: &'input [i32], colors: &'input [Color], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
Source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
fn shape_query_version( &self, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>
fn shape_rectangles<'c, 'input>( &'c self, operation: SO, destination_kind: SK, ordering: ClipOrdering, destination_window: u32, x_offset: i16, y_offset: i16, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn shape_mask<A>( &self, operation: SO, destination_kind: SK, destination_window: u32, x_offset: i16, y_offset: i16, source_bitmap: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn shape_combine( &self, operation: SO, destination_kind: SK, source_kind: SK, destination_window: u32, x_offset: i16, y_offset: i16, source_window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn shape_offset( &self, destination_kind: SK, destination_window: u32, x_offset: i16, y_offset: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn shape_query_extents( &self, destination_window: u32, ) -> Result<Cookie<'_, Self, QueryExtentsReply>, ConnectionError>
fn shape_select_input( &self, destination_window: u32, enable: bool, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn shape_input_selected( &self, destination_window: u32, ) -> Result<Cookie<'_, Self, InputSelectedReply>, ConnectionError>
fn shape_get_rectangles( &self, window: u32, source_kind: SK, ) -> Result<Cookie<'_, Self, GetRectanglesReply>, ConnectionError>
Source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
fn xc_misc_get_version( &self, client_major_version: u16, client_minor_version: u16, ) -> Result<Cookie<'_, Self, GetVersionReply>, ConnectionError>
fn xc_misc_get_xid_range( &self, ) -> Result<Cookie<'_, Self, GetXIDRangeReply>, ConnectionError>
fn xc_misc_get_xid_list( &self, count: u32, ) -> Result<Cookie<'_, Self, GetXIDListReply>, ConnectionError>
Source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
fn xfixes_query_version( &self, client_major_version: u32, client_minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>
fn xfixes_change_save_set( &self, mode: SaveSetMode, target: SaveSetTarget, map: SaveSetMapping, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_select_selection_input( &self, window: u32, selection: u32, event_mask: SelectionEventMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_select_cursor_input( &self, window: u32, event_mask: CursorNotifyMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_get_cursor_image( &self, ) -> Result<Cookie<'_, Self, GetCursorImageReply>, ConnectionError>
fn xfixes_create_region<'c, 'input>( &'c self, region: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn xfixes_create_region_from_bitmap( &self, region: u32, bitmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_create_region_from_window( &self, region: u32, window: u32, kind: SK, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_create_region_from_gc( &self, region: u32, gc: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_create_region_from_picture( &self, region: u32, picture: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_destroy_region( &self, region: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_set_region<'c, 'input>( &'c self, region: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn xfixes_copy_region( &self, source: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_union_region( &self, source1: u32, source2: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_intersect_region( &self, source1: u32, source2: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_subtract_region( &self, source1: u32, source2: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_invert_region( &self, source: u32, bounds: Rectangle, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_translate_region( &self, region: u32, dx: i16, dy: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_region_extents( &self, source: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_fetch_region( &self, region: u32, ) -> Result<Cookie<'_, Self, FetchRegionReply>, ConnectionError>
fn xfixes_set_gc_clip_region<A>( &self, gc: u32, region: A, x_origin: i16, y_origin: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_set_window_shape_region<A>( &self, dest: u32, dest_kind: SK, x_offset: i16, y_offset: i16, region: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_set_picture_clip_region<A>( &self, picture: u32, region: A, x_origin: i16, y_origin: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_set_cursor_name<'c, 'input>( &'c self, cursor: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn xfixes_get_cursor_name( &self, cursor: u32, ) -> Result<Cookie<'_, Self, GetCursorNameReply>, ConnectionError>
fn xfixes_get_cursor_image_and_name( &self, ) -> Result<Cookie<'_, Self, GetCursorImageAndNameReply>, ConnectionError>
fn xfixes_change_cursor( &self, source: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_change_cursor_by_name<'c, 'input>( &'c self, src: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn xfixes_expand_region( &self, source: u32, destination: u32, left: u16, right: u16, top: u16, bottom: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_hide_cursor( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_show_cursor( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_create_pointer_barrier<'c, 'input>( &'c self, barrier: u32, window: u32, x1: u16, y1: u16, x2: u16, y2: u16, directions: BarrierDirections, devices: &'input [u16], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
fn xfixes_delete_pointer_barrier( &self, barrier: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Source§fn xfixes_set_client_disconnect_mode(
&self,
disconnect_mode: ClientDisconnectFlags,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_set_client_disconnect_mode( &self, disconnect_mode: ClientDisconnectFlags, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn xfixes_get_client_disconnect_mode( &self, ) -> Result<Cookie<'_, Self, GetClientDisconnectModeReply>, ConnectionError>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<'v, T> FromForm<'v> for Twhere
T: FromFormField<'v>,
impl<'v, T> FromForm<'v> for Twhere
T: FromFormField<'v>,
Source§fn init(opts: Options) -> <T as FromForm<'v>>::Context
fn init(opts: Options) -> <T as FromForm<'v>>::Context
Self.Source§fn push_value(ctxt: &mut <T as FromForm<'v>>::Context, field: ValueField<'v>)
fn push_value(ctxt: &mut <T as FromForm<'v>>::Context, field: ValueField<'v>)
field.Source§fn push_data<'life0, 'life1, 'async_trait>(
ctxt: &'life0 mut FromFieldContext<'v, T>,
field: DataField<'v, 'life1>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'v: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn push_data<'life0, 'life1, 'async_trait>(
ctxt: &'life0 mut FromFieldContext<'v, T>,
field: DataField<'v, 'life1>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'v: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
field.Source§fn finalize(ctxt: <T as FromForm<'v>>::Context) -> Result<T, Errors<'v>>
fn finalize(ctxt: <T as FromForm<'v>>::Context) -> Result<T, Errors<'v>>
Errors otherwise.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.