pub struct AsciiSet { /* private fields */ }
Expand description
Represents a set of characters or bytes in the ASCII range.
This is used in percent_encode
and utf8_percent_encode
.
This is similar to percent-encode sets.
Use the add
method of an existing set to define a new set. For example:
use percent_encoding::{AsciiSet, CONTROLS};
/// https://url.spec.whatwg.org/#fragment-percent-encode-set
const FRAGMENT: &AsciiSet = &CONTROLS.add(b' ').add(b'"').add(b'<').add(b'>').add(b'`');
Implementations§
Auto Trait Implementations§
impl Freeze for AsciiSet
impl RefUnwindSafe for AsciiSet
impl Send for AsciiSet
impl Sync for AsciiSet
impl Unpin for AsciiSet
impl UnwindSafe for AsciiSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes