pub struct TsFragment {
pub ts: u8,
pub defs: Vec<TsFragmentDef>,
pub imports: Vec<TsImport>,
pub reexports: Vec<TsReexport>,
pub refs: Vec<TsRef>,
pub default: Option<String>,
}Expand description
The whole per-file fragment, in serialization order: defs, imports,
reexports, refs, then default when the file has one. The ts: 1 tag
itself lives on the serde type (graph::TsFragment), which this converts
into – exactly as extract::Extraction converts into graph::Fragment.
Fields§
§ts: u8The routing tag, always 1 and always FIRST – resolve_graph’s
door-level split reads it to send this fragment to the TS resolver
instead of the C# one, and graph::AnyFragment reads it to tell the
two cached shapes apart. Required on the read side too: a C#/markup
fragment carries no ts key at all, which is what makes the untagged
discrimination total.
defs: Vec<TsFragmentDef>The defs value.
imports: Vec<TsImport>The imports value.
reexports: Vec<TsReexport>The reexports value.
refs: Vec<TsRef>The refs value.
default: Option<String>Appended LAST and only when the file has one – the house rule for every added fact.
Trait Implementations§
Source§impl Clone for TsFragment
impl Clone for TsFragment
Source§fn clone(&self) -> TsFragment
fn clone(&self) -> TsFragment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TsFragment
impl Debug for TsFragment
Source§impl Default for TsFragment
impl Default for TsFragment
Source§impl<'de> Deserialize<'de> for TsFragment
impl<'de> Deserialize<'de> for TsFragment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<TsFragment> for AnyFragment
impl From<TsFragment> for AnyFragment
Source§fn from(f: TsFragment) -> Self
fn from(f: TsFragment) -> Self
Source§impl PartialEq for TsFragment
impl PartialEq for TsFragment
Source§impl Serialize for TsFragment
impl Serialize for TsFragment
impl StructuralPartialEq for TsFragment
Auto Trait Implementations§
impl Freeze for TsFragment
impl RefUnwindSafe for TsFragment
impl Send for TsFragment
impl Sync for TsFragment
impl Unpin for TsFragment
impl UnsafeUnpin for TsFragment
impl UnwindSafe for TsFragment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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