pub struct Placeholder {
pub ty: Option<PlaceholderType>,
pub start: usize,
pub end: usize,
}Expand description
One __BRAZESYNC__ occurrence with its inferred type.
Fields§
§ty: Option<PlaceholderType>None when the token is not in a recognized | lid: / | id:
argument position — caller treats this as a fatal context error.
start: usizeByte offset where the literal __BRAZESYNC__ token begins.
end: usizeByte offset (exclusive) where it ends.
Trait Implementations§
Source§impl Clone for Placeholder
impl Clone for Placeholder
Source§fn clone(&self) -> Placeholder
fn clone(&self) -> Placeholder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Placeholder
impl Debug for Placeholder
Source§impl PartialEq for Placeholder
impl PartialEq for Placeholder
Source§fn eq(&self, other: &Placeholder) -> bool
fn eq(&self, other: &Placeholder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Placeholder
impl StructuralPartialEq for Placeholder
Auto Trait Implementations§
impl Freeze for Placeholder
impl RefUnwindSafe for Placeholder
impl Send for Placeholder
impl Sync for Placeholder
impl Unpin for Placeholder
impl UnsafeUnpin for Placeholder
impl UnwindSafe for Placeholder
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.