Struct strong::Strong [−][src]
Strongly typed str
Implementations
impl<Ctx: Validator> Strong<Ctx>
[src]
pub fn validate<S: AsRef<str> + ?Sized>(s: &S) -> Result<&Self, Ctx::Err>
[src]
construct from str
.
pub unsafe fn without_validate<S: AsRef<str> + ?Sized>(s: &S) -> &Self
[src]
pub fn as_str(&self) -> &str
[src]
convert to str
.
pub fn to_strong_buf(&self) -> StrongBuf<Ctx>
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
Trait Implementations
impl<Ctx: Validator> Borrow<Strong<Ctx>> for StrongBuf<Ctx>
[src]
impl<Ctx: Validator> ToOwned for Strong<Ctx>
[src]
Auto Trait Implementations
impl<Ctx> RefUnwindSafe for Strong<Ctx> where
Ctx: RefUnwindSafe,
[src]
Ctx: RefUnwindSafe,
impl<Ctx> Send for Strong<Ctx> where
Ctx: Send,
[src]
Ctx: Send,
impl<Ctx> !Sized for Strong<Ctx>
[src]
impl<Ctx> Sync for Strong<Ctx> where
Ctx: Sync,
[src]
Ctx: Sync,
impl<Ctx> Unpin for Strong<Ctx> where
Ctx: Unpin,
[src]
Ctx: Unpin,
impl<Ctx> UnwindSafe for Strong<Ctx> where
Ctx: UnwindSafe,
[src]
Ctx: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,