[−][src]Enum fastobo::share::Cow
Variants
Borrowed(B)
Borrowed data.
Owned(<B as Redeem<'a>>::Owned)
Owned data.
Trait Implementations
impl<'i> FromPair<'i> for Cow<'i, IdLocal<'i>>
[src]
const RULE: Rule
[src]
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
Create a new instance from a Pair
.
impl<'i> FromPair<'i> for Cow<'i, IdPrefix<'i>>
[src]
const RULE: Rule
[src]
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
Create a new instance from a Pair
.
impl<'i> FromPair<'i> for Cow<'i, PrefixedId<'i>>
[src]
const RULE: Rule
[src]
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
Create a new instance from a Pair
.
impl<'i> FromPair<'i> for Cow<'i, &'i UnprefixedId>
[src]
const RULE: Rule
[src]
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
Create a new instance from a Pair
.
impl<'i> FromPair<'i> for Cow<'i, &'i QuotedStr>
[src]
const RULE: Rule
[src]
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
Create a new instance from a Pair
.
impl<'i> FromPair<'i> for Cow<'i, &'i UnquotedStr>
[src]
const RULE: Rule
[src]
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
Create a new instance from a Pair
.
impl<'i> FromSlice<'i> for Cow<'i, IdLocal<'i>>
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_slice(s: &'i str) -> Result<Self, Self::Err>
[src]
impl<'i> FromSlice<'i> for Cow<'i, IdPrefix<'i>>
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_slice(s: &'i str) -> Result<Self, Self::Err>
[src]
impl<'i> FromSlice<'i> for Cow<'i, PrefixedId<'i>>
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_slice(s: &'i str) -> Result<Self, Self::Err>
[src]
impl<'i> FromSlice<'i> for Cow<'i, &'i UnprefixedId>
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_slice(s: &'i str) -> Result<Self, Self::Err>
[src]
impl<'i> FromSlice<'i> for Cow<'i, &'i QuotedStr>
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_slice(s: &'i str) -> Result<Self, Self::Err>
[src]
impl<'i> FromSlice<'i> for Cow<'i, &'i UnquotedStr>
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_slice(s: &'i str) -> Result<Self, Self::Err>
[src]
impl<'a, B> Share<'a, B> for Cow<'a, B> where
B: Redeem<'a> + Clone,
<B as Redeem<'a>>::Owned: Share<'a, B>,
[src]
B: Redeem<'a> + Clone,
<B as Redeem<'a>>::Owned: Share<'a, B>,
impl<'a, B> Redeem<'a> for Cow<'a, B> where
B: Redeem<'a>,
<B as Redeem<'a>>::Owned: Clone,
[src]
B: Redeem<'a>,
<B as Redeem<'a>>::Owned: Clone,
impl<'a, B> Clone for Cow<'a, B> where
B: Clone + Redeem<'a>,
<B as Redeem<'a>>::Owned: Clone,
[src]
B: Clone + Redeem<'a>,
<B as Redeem<'a>>::Owned: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, B> From<&'a B> for Cow<'a, &'a B> where
&'a B: Redeem<'a>,
[src]
&'a B: Redeem<'a>,
impl<'a> From<&'a str> for Cow<'a, &'a str>
[src]
impl<'a> From<String> for Cow<'a, &'a str>
[src]
impl<'a> PartialEq<str> for Cow<'a, &'a str>
[src]
fn eq(&self, other: &str) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> PartialEq<Cow<'a, &'a str>> for Cow<'a, &'a str>
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> Eq for Cow<'a, &'a str>
[src]
impl<'a, B> Display for Cow<'a, B> where
B: Display + Redeem<'a>,
<B as Redeem<'a>>::Owned: Display,
[src]
B: Display + Redeem<'a>,
<B as Redeem<'a>>::Owned: Display,
impl<'a, B> Debug for Cow<'a, B> where
B: Debug + Redeem<'a>,
<B as Redeem<'a>>::Owned: Debug,
[src]
B: Debug + Redeem<'a>,
<B as Redeem<'a>>::Owned: Debug,
impl<'a> Deref for Cow<'a, &'a str>
[src]
impl<'a, B> Hash for Cow<'a, B> where
B: Hash + Redeem<'a>,
<B as Redeem<'a>>::Owned: Hash,
[src]
B: Hash + Redeem<'a>,
<B as Redeem<'a>>::Owned: Hash,
Auto Trait Implementations
impl<'a, B> Sync for Cow<'a, B> where
B: Sync,
<B as Redeem<'a>>::Owned: Sync,
B: Sync,
<B as Redeem<'a>>::Owned: Sync,
impl<'a, B> Send for Cow<'a, B> where
B: Send,
<B as Redeem<'a>>::Owned: Send,
B: Send,
<B as Redeem<'a>>::Owned: Send,
impl<'a, B> Unpin for Cow<'a, B> where
B: Unpin,
<B as Redeem<'a>>::Owned: Unpin,
B: Unpin,
<B as Redeem<'a>>::Owned: Unpin,
impl<'a, B> RefUnwindSafe for Cow<'a, B> where
B: RefUnwindSafe,
<B as Redeem<'a>>::Owned: RefUnwindSafe,
B: RefUnwindSafe,
<B as Redeem<'a>>::Owned: RefUnwindSafe,
impl<'a, B> UnwindSafe for Cow<'a, B> where
B: UnwindSafe,
<B as Redeem<'a>>::Owned: UnwindSafe,
B: UnwindSafe,
<B as Redeem<'a>>::Owned: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,