#[non_exhaustive]pub enum WikiLinksMode {
UrlFirst,
TitleFirst,
}Expand description
Selects between wikilinks with the title first or the URL first.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UrlFirst
Indicates that the URL precedes the title. For example: [[http://example.com|link title]].
TitleFirst
Indicates that the title precedes the URL. For example: [[link title|http://example.com]].
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for WikiLinksMode
impl<'arbitrary> Arbitrary<'arbitrary> for WikiLinksMode
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for WikiLinksMode
impl Clone for WikiLinksMode
Source§fn clone(&self) -> WikiLinksMode
fn clone(&self) -> WikiLinksMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WikiLinksMode
impl Debug for WikiLinksMode
Source§impl PartialEq for WikiLinksMode
impl PartialEq for WikiLinksMode
impl Copy for WikiLinksMode
impl Eq for WikiLinksMode
impl StructuralPartialEq for WikiLinksMode
Auto Trait Implementations§
impl Freeze for WikiLinksMode
impl RefUnwindSafe for WikiLinksMode
impl Send for WikiLinksMode
impl Sync for WikiLinksMode
impl Unpin for WikiLinksMode
impl UnwindSafe for WikiLinksMode
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