Struct liquid_lib::stdlib::Strip

source ·
pub struct Strip;
Available on crate feature stdlib only.
Expand description

Removes all whitespace (tabs, spaces, and newlines) from both the left and right side of a string.

It does not affect spaces between words. Note that while this works for the case of tabs, spaces, and newlines, it also removes any other codepoints defined by the Unicode Derived Core Property White_Space (per rust documentation.

Trait Implementations§

source§

impl Clone for Strip

source§

fn clone(&self) -> Strip

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl FilterReflection for Strip

source§

fn name(&self) -> &'static str

source§

fn description(&self) -> &'static str

source§

fn positional_parameters(&self) -> &'static [ParameterReflection]

source§

fn keyword_parameters(&self) -> &'static [ParameterReflection]

source§

impl ParseFilter for Strip

source§

fn parse(&self, args: FilterArguments<'_>) -> Result<Box<dyn Filter>>

Filter input based on arguments.
source§

fn reflection(&self) -> &dyn FilterReflection

Auto Trait Implementations§

§

impl RefUnwindSafe for Strip

§

impl Send for Strip

§

impl Sync for Strip

§

impl Unpin for Strip

§

impl UnwindSafe for Strip

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ParseFilterClone for Twhere T: 'static + ParseFilter + Clone,

source§

fn clone_box(&self) -> Box<dyn ParseFilter + 'static, Global>

Cloning of dyn ParseFilter.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<T> Any for Twhere T: Any,

§

impl<T> CloneAny for Twhere T: Any + Clone,

§

impl<T> CloneAnySend for Twhere T: Any + Send + Clone,

§

impl<T> CloneAnySendSync for Twhere T: Any + Send + Sync + Clone,

§

impl<T> CloneAnySync for Twhere T: Any + Sync + Clone,