#[repr(C)]
pub struct UncasedStr(_);
A reference to an uncased (case-preserving) ASCII string. This is typically
created from an &str as follows:
use rocket::http::uncased::UncasedStr;
let ascii_ref: &UncasedStr = "Hello, world!".into();
Returns a reference to an UncasedStr from an &str.
use rocket::http::uncased::UncasedStr;
let uncased_str = UncasedStr::new("Hello!");
assert_eq!(uncased_str, "hello!");
assert_eq!(uncased_str, "Hello!");
assert_eq!(uncased_str, "HeLLo!");
Returns self as an &str.
use rocket::http::uncased::UncasedStr;
let uncased_str = UncasedStr::new("Hello!");
assert_eq!(uncased_str.as_str(), "Hello!");
assert_ne!(uncased_str.as_str(), "hELLo!");
Converts a Box<UncasedStr> into an Uncased without copying or allocating.
use rocket::http::uncased::Uncased;
let uncased = Uncased::new("Hello!");
let boxed = uncased.clone().into_boxed_uncased();
assert_eq!(boxed.into_uncased(), uncased);
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=.
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher]. Read more
Feeds a slice of this type into the given [Hasher]. Read more
Immutably borrows from an owned value. Read more
Converts the given value to a String. Read more
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more