pub struct ParseContext<'a, S = ParsedStyleSheet> {
pub relationships: HashMap<String, String>,
pub content_types: ContentTypeLookup,
pub parts: &'a HashMap<String, OoxmlPart>,
pub binary_assets: &'a HashMap<String, Vec<u8>>,
pub style_sheet: S,
pub warnings: RefCell<Vec<String>>,
}Expand description
Mirrors TypeScript ParseContext.
Fields§
§relationships: HashMap<String, String>§content_types: ContentTypeLookup§parts: &'a HashMap<String, OoxmlPart>§binary_assets: &'a HashMap<String, Vec<u8>>§style_sheet: S§warnings: RefCell<Vec<String>>Implementations§
Source§impl<'a, S: Borrow<ParsedStyleSheet>> ParseContext<'a, S>
impl<'a, S: Borrow<ParsedStyleSheet>> ParseContext<'a, S>
pub fn styles(&self) -> &ParsedStyleSheet
pub fn push_warning(&self, message: impl Into<String>)
Auto Trait Implementations§
impl<'a, S = ParsedStyleSheet> !Freeze for ParseContext<'a, S>
impl<'a, S = ParsedStyleSheet> !RefUnwindSafe for ParseContext<'a, S>
impl<'a, S = ParsedStyleSheet> !Sync for ParseContext<'a, S>
impl<'a, S> Send for ParseContext<'a, S>where
S: Send,
impl<'a, S> Unpin for ParseContext<'a, S>where
S: Unpin,
impl<'a, S> UnsafeUnpin for ParseContext<'a, S>where
S: UnsafeUnpin,
impl<'a, S> UnwindSafe for ParseContext<'a, S>where
S: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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