Enum WikiLinksMode

#[non_exhaustive]
pub enum WikiLinksMode

Selects between wikilinks with the title first or the URL first.

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

impl Clone for WikiLinksMode

fn clone(&self) -> Self

impl Copy for WikiLinksMode

impl Debug for WikiLinksMode

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for WikiLinksMode

impl PartialEq for WikiLinksMode

fn eq(&self, other: &Self) -> bool

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 UnsafeUnpin for WikiLinksMode

impl UnwindSafe for WikiLinksMode

Blanket Implementations

impl<T> Any for WikiLinksMode where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for WikiLinksMode where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for WikiLinksMode where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for WikiLinksMode where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for WikiLinksMode

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for WikiLinksMode where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for WikiLinksMode where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for WikiLinksMode where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for WikiLinksMode where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>