Enum OpenFTMLElement

Source
pub enum OpenFTMLElement {
Show 52 variants Invisible, SetSectionLevel(SectionLevel), ImportModule(ModuleURI), UseModule(ModuleURI), Slide(DocumentElementURI), SlideNumber, ProofBody, Module { uri: ModuleURI, meta: Option<ModuleURI>, signature: Option<Language>, }, MathStructure { uri: SymbolURI, macroname: Option<Box<str>>, }, Morphism { uri: SymbolURI, domain: ModuleURI, total: bool, }, Assign(SymbolURI), Section { lvl: SectionLevel, uri: DocumentElementURI, }, SkipSection, Paragraph { uri: DocumentElementURI, kind: ParagraphKind, formatting: ParagraphFormatting, styles: Box<[Name]>, }, Problem { uri: DocumentElementURI, styles: Box<[Name]>, autogradable: bool, points: Option<f32>, sub_problem: bool, }, Doctitle, Title, ProofTitle, SubproofTitle, Symdecl { uri: SymbolURI, arity: ArgSpec, macroname: Option<Box<str>>, role: Box<[Box<str>]>, assoctype: Option<AssocType>, reordering: Option<Box<str>>, }, Vardecl { uri: DocumentElementURI, arity: ArgSpec, bind: bool, macroname: Option<Box<str>>, role: Box<[Box<str>]>, assoctype: Option<AssocType>, reordering: Option<Box<str>>, is_seq: bool, }, Notation { id: Box<str>, symbol: VarOrSym, precedence: isize, argprecs: SmallVec<isize, 9>, }, NotationComp, NotationOpComp, Definiendum(SymbolURI), Type, Conclusion { uri: SymbolURI, in_term: bool, }, Definiens { uri: Option<SymbolURI>, in_term: bool, }, OpenTerm { term: OpenTerm, is_top: bool, }, ClosedTerm(Term), MMTRule(Box<str>), ArgSep, ArgMap, ArgMapSep, HeadTerm, ProblemHint, ProblemSolution(Option<Box<str>>), ProblemGradingNote, AnswerClass, AnswerClassFeedback, ChoiceBlock { multiple: bool, inline: bool, }, ProblemChoice, ProblemChoiceVerdict, ProblemChoiceFeedback, Fillinsol(Option<f32>), FillinsolCase, Inputref { uri: DocumentURI, id: Box<str>, }, IfInputref(bool), Comp, MainComp, DefComp, Arg(OpenArg),
}

Variantsยง

ยง

Invisible

ยง

SetSectionLevel(SectionLevel)

ยง

ImportModule(ModuleURI)

ยง

UseModule(ModuleURI)

ยง

Slide(DocumentElementURI)

ยง

SlideNumber

ยง

ProofBody

ยง

Module

Fields

ยงuri: ModuleURI
ยงmeta: Option<ModuleURI>
ยงsignature: Option<Language>
ยง

MathStructure

Fields

ยงuri: SymbolURI
ยงmacroname: Option<Box<str>>
ยง

Morphism

Fields

ยงuri: SymbolURI
ยงdomain: ModuleURI
ยงtotal: bool
ยง

Assign(SymbolURI)

ยง

Section

Fields

ยงlvl: SectionLevel
ยงuri: DocumentElementURI
ยง

SkipSection

ยง

Paragraph

Fields

ยงuri: DocumentElementURI
ยงkind: ParagraphKind
ยงformatting: ParagraphFormatting
ยงstyles: Box<[Name]>
ยง

Problem

Fields

ยงuri: DocumentElementURI
ยงstyles: Box<[Name]>
ยงautogradable: bool
ยงpoints: Option<f32>
ยงsub_problem: bool
ยง

Doctitle

ยง

Title

ยง

ProofTitle

ยง

SubproofTitle

ยง

Symdecl

Fields

ยงuri: SymbolURI
ยงarity: ArgSpec
ยงmacroname: Option<Box<str>>
ยงrole: Box<[Box<str>]>
ยงassoctype: Option<AssocType>
ยงreordering: Option<Box<str>>
ยง

Vardecl

Fields

ยงuri: DocumentElementURI
ยงarity: ArgSpec
ยงmacroname: Option<Box<str>>
ยงrole: Box<[Box<str>]>
ยงassoctype: Option<AssocType>
ยงreordering: Option<Box<str>>
ยงis_seq: bool
ยง

Notation

Fields

ยงprecedence: isize
ยงargprecs: SmallVec<isize, 9>
ยง

NotationComp

ยง

NotationOpComp

ยง

Definiendum(SymbolURI)

ยง

Type

ยง

Conclusion

Fields

ยงuri: SymbolURI
ยงin_term: bool
ยง

Definiens

Fields

ยงuri: Option<SymbolURI>
ยงin_term: bool
ยง

OpenTerm

Fields

ยงis_top: bool
ยง

ClosedTerm(Term)

ยง

MMTRule(Box<str>)

ยง

ArgSep

ยง

ArgMap

ยง

ArgMapSep

ยง

HeadTerm

ยง

ProblemHint

ยง

ProblemSolution(Option<Box<str>>)

ยง

ProblemGradingNote

ยง

AnswerClass

ยง

AnswerClassFeedback

ยง

ChoiceBlock

Fields

ยงmultiple: bool
ยงinline: bool
ยง

ProblemChoice

ยง

ProblemChoiceVerdict

ยง

ProblemChoiceFeedback

ยง

Fillinsol(Option<f32>)

ยง

FillinsolCase

ยง

Inputref

Fields

ยงuri: DocumentURI
ยง

IfInputref(bool)

ยง

Comp

ยง

MainComp

ยง

DefComp

ยง

Arg(OpenArg)

Implementationsยง

Sourceยง

impl OpenFTMLElement

Source

pub(crate) fn close<E: FTMLExtractor, N: FTMLNode>( self, previous: &mut FTMLElements, next: &mut FTMLElements, extractor: &mut E, node: &N, ) -> Option<Self>

Source

fn as_term<N: FTMLNode>(next: &mut FTMLElements, node: &N) -> Term

Source

fn close_importmodule<E: FTMLExtractor>(extractor: &mut E, uri: ModuleURI)

Source

fn close_usemodule<E: FTMLExtractor>(extractor: &mut E, uri: ModuleURI)

Source

fn close_module<E: FTMLExtractor, N: FTMLNode>( extractor: &mut E, node: &N, uri: ModuleURI, meta: Option<ModuleURI>, signature: Option<Language>, )

Source

fn close_structure<E: FTMLExtractor, N: FTMLNode>( extractor: &mut E, node: &N, uri: SymbolURI, macroname: Option<Box<str>>, )

Source

fn close_morphism<E: FTMLExtractor, N: FTMLNode>( extractor: &mut E, node: &N, uri: SymbolURI, domain: ModuleURI, total: bool, )

Source

fn close_section<E: FTMLExtractor, N: FTMLNode>( extractor: &mut E, node: &N, lvl: SectionLevel, uri: DocumentElementURI, )

Source

fn close_paragraph<E: FTMLExtractor, N: FTMLNode>( extractor: &mut E, node: &N, kind: ParagraphKind, formatting: ParagraphFormatting, styles: Box<[Name]>, uri: DocumentElementURI, )

Source

fn close_problem<E: FTMLExtractor, N: FTMLNode>( extractor: &mut E, node: &N, uri: DocumentElementURI, styles: Box<[Name]>, autogradable: bool, points: Option<f32>, sub_problem: bool, )

Source

fn close_symdecl<E: FTMLExtractor>( extractor: &mut E, uri: SymbolURI, arity: ArgSpec, macroname: Option<Box<str>>, role: Box<[Box<str>]>, assoctype: Option<AssocType>, reordering: Option<Box<str>>, )

Source

fn close_vardecl<E: FTMLExtractor>( extractor: &mut E, uri: DocumentElementURI, bind: bool, arity: ArgSpec, macroname: Option<Box<str>>, role: Box<[Box<str>]>, assoctype: Option<AssocType>, reordering: Option<Box<str>>, is_seq: bool, )

Source

fn close_notation<E: FTMLExtractor>( extractor: &mut E, id: Box<str>, symbol: VarOrSym, precedence: isize, argprecs: SmallVec<isize, 9>, )

Trait Implementationsยง

Sourceยง

impl Clone for OpenFTMLElement

Sourceยง

fn clone(&self) -> OpenFTMLElement

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for OpenFTMLElement

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementationsยง

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
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<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
ยง

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.
Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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,