Struct nlprule::types::Suggestion[][src]

pub struct Suggestion { /* fields omitted */ }

Suggestion for change in a text.

Implementations

impl Suggestion[src]

pub fn source(&self) -> &str[src]

Returns an identifier of the source of this suggestion.

pub fn message(&self) -> &str[src]

Returns a human-readable message.

pub fn replacements(&self) -> &[String][src]

Returns the suggested replacement options for the text.

pub fn span(&self) -> &Span[src]

Gets the span of this suggestion.

pub fn rshift(self, position: Position) -> Self[src]

Shift the span right by the specified amount.

pub fn lshift(self, position: Position) -> Self[src]

Shift the span left by the specified amount.

Trait Implementations

impl Clone for Suggestion[src]

impl Debug for Suggestion[src]

impl<'de> Deserialize<'de> for Suggestion[src]

impl PartialEq<Suggestion> for Suggestion[src]

impl Serialize for Suggestion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.