Enum ftml::tree::AcceptsPartial
source · pub enum AcceptsPartial {
None,
ListItem,
TableRow,
TableCell,
Tab,
Ruby,
}
Expand description
A marker enum counterpart to PartialElement
.
This is a flag to the parser which designates which partial (if any) the rule is currently looking to accept.
Variants§
Implementations§
source§impl AcceptsPartial
impl AcceptsPartial
pub fn matches(self, partial: &PartialElement<'_>) -> bool
Trait Implementations§
source§impl Clone for AcceptsPartial
impl Clone for AcceptsPartial
source§fn clone(&self) -> AcceptsPartial
fn clone(&self) -> AcceptsPartial
Returns a copy 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 AcceptsPartial
impl Debug for AcceptsPartial
source§impl Default for AcceptsPartial
impl Default for AcceptsPartial
source§fn default() -> AcceptsPartial
fn default() -> AcceptsPartial
Returns the “default value” for a type. Read more
source§impl Hash for AcceptsPartial
impl Hash for AcceptsPartial
source§impl PartialEq for AcceptsPartial
impl PartialEq for AcceptsPartial
source§fn eq(&self, other: &AcceptsPartial) -> bool
fn eq(&self, other: &AcceptsPartial) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AcceptsPartial
impl Eq for AcceptsPartial
impl StructuralEq for AcceptsPartial
impl StructuralPartialEq for AcceptsPartial
Auto Trait Implementations§
impl RefUnwindSafe for AcceptsPartial
impl Send for AcceptsPartial
impl Sync for AcceptsPartial
impl Unpin for AcceptsPartial
impl UnwindSafe for AcceptsPartial
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more