Struct Extractor

Source
struct Extractor<'a> {
    errors: String,
    css: Vec<CSS>,
    refs: Vec<u8>,
    triples: HSet<Triple>,
    title: Option<Box<str>>,
    backend: &'a AnyBackend,
    state: ExtractorState,
}

Fieldsยง

ยงerrors: Stringยงcss: Vec<CSS>ยงrefs: Vec<u8>ยงtriples: HSet<Triple>ยงtitle: Option<Box<str>>ยงbackend: &'a AnyBackendยงstate: ExtractorState

Trait Implementationsยง

Sourceยง

impl StatefulExtractor for Extractor<'_>

Sourceยง

const RDF: bool = true

Sourceยง

type Attr<'a> = Attributes

Sourceยง

fn add_resource<T: Resourcable>(&mut self, t: &T) -> LazyDocRef<T>

Sourceยง

fn state(&self) -> &ExtractorState

Sourceยง

fn state_mut(&mut self) -> &mut ExtractorState

Sourceยง

fn set_document_title(&mut self, title: Box<str>)

Sourceยง

fn add_triples<const N: usize>(&mut self, triples: [Triple; N])

Sourceยง

fn add_error(&mut self, err: FTMLError)

Auto Trait Implementationsยง

ยง

impl<'a> Freeze for Extractor<'a>

ยง

impl<'a> !RefUnwindSafe for Extractor<'a>

ยง

impl<'a> Send for Extractor<'a>

ยง

impl<'a> Sync for Extractor<'a>

ยง

impl<'a> Unpin for Extractor<'a>

ยง

impl<'a> !UnwindSafe for Extractor<'a>

Blanket Implementationsยง

Sourceยง

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

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

impl<T> ArchivePointee for T

ยง

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
ยง

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Sourceยง

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

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

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

Sourceยง

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 F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

ยง

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
ยง

impl<T> Downcast for T
where T: Any,

ยง

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
ยง

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
ยง

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Anyโ€™s vtable from &Traitโ€™s.
ยง

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Anyโ€™s vtable from &mut Traitโ€™s.
ยง

impl<T> DowncastSend for T
where T: Any + Send,

ยง

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
ยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

ยง

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
ยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

impl<E> FTMLExtractor for E

Sourceยง

fn add_content_element( &mut self, elem: OpenDeclaration<Unchecked>, ) -> Result<(), OpenDeclaration<Unchecked>>

ยงErrors
Sourceยง

fn add_term(&mut self, symbol: Option<SymbolURI>, tm: Term) -> Result<(), Term>

ยงErrors
Sourceยง

const RDF: bool = <Self as StatefulExtractor>::RDF

Sourceยง

type Attr<'a> = <E as StatefulExtractor>::Attr<'a>

Sourceยง

fn add_triples<const N: usize>(&mut self, triples: [Triple; N])

Sourceยง

fn add_error(&mut self, err: FTMLError)

Sourceยง

fn styles(&mut self) -> &mut DocumentStyles

Sourceยง

fn set_document_title(&mut self, title: Box<str>)

Sourceยง

fn add_resource<T>(&mut self, t: &T) -> LazyDocRef<T>
where T: Resourcable,

Sourceยง

fn resolve_variable_name(&self, name: Name) -> Var

Sourceยง

fn open_content(&mut self, uri: ModuleURI)

Sourceยง

fn open_narrative(&mut self, uri: Option<NarrativeURI>)

Sourceยง

fn open_complex_term(&mut self)

Sourceยง

fn close_content( &mut self, ) -> Option<(ModuleURI, Vec<OpenDeclaration<Unchecked>>)>

Sourceยง

fn close_narrative( &mut self, ) -> Option<(NarrativeURI, Vec<DocumentElement<Unchecked>>)>

Sourceยง

fn with_problem<R>( &mut self, then: impl FnOnce(&mut ProblemState) -> R, ) -> Option<R>

Sourceยง

fn push_answer_class(&mut self, id: Box<str>, kind: AnswerKind)

Sourceยง

fn push_problem_choice(&mut self, correct: bool)

Sourceยง

fn push_fillinsol_case(&mut self, case: FillInSolOption)

Sourceยง

fn close_complex_term(&mut self) -> Option<Term>

Sourceยง

fn open_section(&mut self, uri: DocumentElementURI)

Sourceยง

fn close_section( &mut self, ) -> Option<(DocumentElementURI, Option<DocumentRange>, Vec<DocumentElement<Unchecked>>)>

Sourceยง

fn open_slide(&mut self)

Sourceยง

fn close_slide(&mut self) -> Option<Vec<DocumentElement<Unchecked>>>

Sourceยง

fn open_paragraph(&mut self, uri: DocumentElementURI, fors: VecSet<SymbolURI>)

Sourceยง

fn close_paragraph(&mut self) -> Option<ParagraphState>

Sourceยง

fn open_gnote(&mut self)

Sourceยง

fn close_gnote(&mut self) -> Option<GnoteState>

Sourceยง

fn open_fillinsol(&mut self, _width: Option<f32>)

Sourceยง

fn close_fillinsol(&mut self) -> Option<FillinsolState>

Sourceยง

fn open_choice_block(&mut self, multiple: bool, styles: Box<[Box<str>]>)

Sourceยง

fn close_choice_block(&mut self) -> Option<ChoiceBlockState>

Sourceยง

fn open_problem(&mut self, uri: DocumentElementURI)

Sourceยง

fn close_problem(&mut self) -> Option<ProblemState>

Sourceยง

fn add_precondition(&mut self, uri: SymbolURI, dim: CognitiveDimension)

Sourceยง

fn add_objective(&mut self, uri: SymbolURI, dim: CognitiveDimension)

Sourceยง

fn open_decl(&mut self)

Sourceยง

fn close_decl(&mut self) -> Option<(Option<Term>, Option<Term>)>

Sourceยง

fn open_notation(&mut self)

Sourceยง

fn close_notation(&mut self) -> Option<NotationState>

Sourceยง

fn open_args(&mut self)

Sourceยง

fn close_args(&mut self) -> (Vec<Arg>, Option<Term>)

Sourceยง

fn get_narrative_uri(&self) -> NarrativeURI

Sourceยง

fn add_definiendum(&mut self, uri: SymbolURI)

Sourceยง

fn get_content_uri(&self) -> Option<&ModuleURI>

Sourceยง

fn add_module(&mut self, module: OpenModule<Unchecked>)

Sourceยง

fn new_id(&mut self, prefix: Cow<'static, str>) -> Box<str>

Sourceยง

fn in_notation(&self) -> bool

Sourceยง

fn in_term(&self) -> bool

Sourceยง

fn set_in_term(&mut self, b: bool)

Sourceยง

fn add_document_element(&mut self, elem: DocumentElement<Unchecked>)

Sourceยง

fn add_title(&mut self, ttl: DocumentRange) -> Result<(), DocumentRange>

Errors Read more
Sourceยง

fn add_notation(&mut self, _: NotationSpec) -> Result<(), NotationSpec>

Errors Read more
Sourceยง

fn add_op_notation(&mut self, op: OpNotation) -> Result<(), OpNotation>

Errors Read more
Sourceยง

fn add_type(&mut self, tm: Term) -> Result<(), Term>

Errors Read more
Sourceยง

fn add_arg( &mut self, _: (u8, Option<u8>), tm: Term, mode: ArgMode, ) -> Result<(), ()>

Errors Read more
Sourceยง

fn get_document_iri(&self) -> NamedNode

Sourceยง

fn get_content_iri(&self) -> Option<NamedNode>

Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

ยง

impl<T> Instrument for T

ยง

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
ยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where 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> IntoEither for T

Sourceยง

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Sourceยง

impl<ET, Err, A> IntoErr<ET, Err> for A
where ET: EngineTypes, Err: From<A>,

Sourceยง

fn into_err( self, _aux: &EngineAux<ET>, _state: &<ET as EngineTypes>::State, ) -> Err

ยง

impl<T> Pointable for T

ยง

const ALIGN: usize

The alignment of pointer.
ยง

type Init = T

The type for initializers.
ยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
ยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
ยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
ยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
ยง

impl<T> Pointee for T

ยง

type Metadata = ()

The type for metadata in pointers and references to Self.
ยง

impl<T> PolicyExt for T
where T: ?Sized,

ยง

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
ยง

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

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

Sourceยง

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 T
where U: TryFrom<T>,

Sourceยง

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<V, T> VZip<V> for T
where V: MultiLane<T>,

ยง

fn vzip(self) -> V

ยง

impl<T> WithSubscriber for T

ยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
ยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
ยง

impl<T> ErasedDestructor for T
where T: 'static,

ยง

impl<T> Fruit for T
where T: Send + Downcast,