pub struct CompatibleStringArgs<'data> {
pub lhs: &'data str,
pub rhs: &'data str,
pub language: Option<&'data str>,
}
Fields§
§lhs: &'data str
§rhs: &'data str
§language: Option<&'data str>
Implementations§
Source§impl<'data> CompatibleStringArgs<'data>
impl<'data> CompatibleStringArgs<'data>
Sourcepub fn try_from(
lhs: StringLiteralRef<'data>,
rhs: StringLiteralRef<'data>,
) -> Result<CompatibleStringArgs<'data>, ThinError>
pub fn try_from( lhs: StringLiteralRef<'data>, rhs: StringLiteralRef<'data>, ) -> Result<CompatibleStringArgs<'data>, ThinError>
Checks whether two StringLiteralRef are compatible and if they are return a new CompatibleStringArgs.
Relevant Resources:
Auto Trait Implementations§
impl<'data> Freeze for CompatibleStringArgs<'data>
impl<'data> RefUnwindSafe for CompatibleStringArgs<'data>
impl<'data> Send for CompatibleStringArgs<'data>
impl<'data> Sync for CompatibleStringArgs<'data>
impl<'data> Unpin for CompatibleStringArgs<'data>
impl<'data> UnwindSafe for CompatibleStringArgs<'data>
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
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>
Converts
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>
Converts
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 more