pub struct DefinitionSite {
pub after: Option<NodeId>,
pub def: Definition,
}Expand description
Where a definition stands among a container’s children: after the
child after (None: before the first), in source order. Definitions
are not blocks in the spec’s algorithm, which reads them out of a
paragraph and drops a paragraph that held nothing else, so they are
kept beside the children rather than among them: the block phase’s own
reads of a container’s children (list looseness, the blank-line flags)
never see one.
Fields§
§after: Option<NodeId>§def: DefinitionTrait Implementations§
Source§impl Clone for DefinitionSite
impl Clone for DefinitionSite
Source§impl Debug for DefinitionSite
impl Debug for DefinitionSite
impl Eq for DefinitionSite
Source§impl PartialEq for DefinitionSite
impl PartialEq for DefinitionSite
impl StructuralPartialEq for DefinitionSite
Auto Trait Implementations§
impl Forget for DefinitionSite
impl Freeze for DefinitionSite
impl RefUnwindSafe for DefinitionSite
impl Send for DefinitionSite
impl Sync for DefinitionSite
impl Unpin for DefinitionSite
impl UnsafeUnpin for DefinitionSite
impl UnwindSafe for DefinitionSite
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.