pub struct UrlBuf(_);
Expand description
A newtype for URL strings, analogous to String
.
Implementations
Methods from Deref<Target = Url>
Trait Implementations
sourceimpl Default for UrlBuf
impl Default for UrlBuf
sourcefn default() -> UrlBuf
fn default() -> UrlBuf
Returns a default UrlBuf
. This corresponds to String::default
.
sourceimpl<'de> Deserialize<'de> for UrlBuf
impl<'de> Deserialize<'de> for UrlBuf
sourcefn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for UrlBuf
impl Send for UrlBuf
impl Sync for UrlBuf
impl Unpin for UrlBuf
impl UnwindSafe for UrlBuf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more