[−][src]Enum liquid_value::State
Queryable state for a Value
.
See tables in https://stackoverflow.com/questions/885414/a-concise-explanation-of-nil-v-empty-v-blank-in-ruby-on-rails
Variants
Is the value truthy?
Is the value the same as default initialized?
Is the value empty?
Is the value blank?
Trait Implementations
impl Clone for State
[src]
impl Copy for State
[src]
impl Debug for State
[src]
impl<'de> Deserialize<'de> for State
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for State
[src]
impl Eq for State
[src]
impl From<State> for ValueCow<'static>
[src]
impl From<State> for Value
[src]
impl PartialEq<State> for State
[src]
impl Serialize for State
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for State
[src]
impl StructuralPartialEq for State
[src]
impl ValueView for State
[src]
fn as_debug(&self) -> &dyn Debug
[src]
fn render(&self) -> DisplayCow
[src]
fn source(&self) -> DisplayCow
[src]
fn type_name(&self) -> &'static str
[src]
fn query_state(&self, state: State) -> bool
[src]
fn to_kstr(&self) -> KStringCow
[src]
fn to_value(&self) -> Value
[src]
fn as_state(&self) -> Option<State>
[src]
fn as_scalar(&self) -> Option<ScalarCow>
[src]
fn is_scalar(&self) -> bool
[src]
fn as_array(&self) -> Option<&dyn ArrayView>
[src]
fn is_array(&self) -> bool
[src]
fn as_object(&self) -> Option<&dyn ObjectView>
[src]
fn is_object(&self) -> bool
[src]
fn is_state(&self) -> bool
[src]
fn is_nil(&self) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,