pub struct ComposedRegions {
pub skeleton: String,
pub regions: Vec<ComposedRegion>,
}Expand description
The composer’s table on HTML, HTML_REGIONS: each region that the composer placed,
and the rest of the page (see the module
documentation).
Fields§
§skeleton: StringThe rest of the page, everything outside its regions: the page with exactly what
regions holds left out, that is with every element that carries
a region’s identifier empty and the title’s words empty, and everything else as in
the page (the stylesheets, the scripts, the language, the compose template’s own
markup, each piece’s words). The regions and the rest of the page together make up
the page, so two builds that differ anywhere differ in the rest of the page or in
an entry of regions.
regions: Vec<ComposedRegion>Each region that the composer placed (the content and the pieces), and the words of the page’s title.
Implementations§
Source§impl ComposedRegions
impl ComposedRegions
Sourcepub fn get(&self, id: &str) -> Option<&ComposedRegion>
pub fn get(&self, id: &str) -> Option<&ComposedRegion>
Returns the region with the identifier id, if there is one.
Trait Implementations§
Source§impl Clone for ComposedRegions
impl Clone for ComposedRegions
Source§impl Debug for ComposedRegions
impl Debug for ComposedRegions
Source§impl Default for ComposedRegions
impl Default for ComposedRegions
impl Eq for ComposedRegions
Source§impl PartialEq for ComposedRegions
impl PartialEq for ComposedRegions
impl StructuralPartialEq for ComposedRegions
Source§impl Table for ComposedRegions
impl Table for ComposedRegions
Source§fn absorb(&mut self, piece: ComposedRegions)
fn absorb(&mut self, piece: ComposedRegions)
The table has one writer per run: a second write replaces the first.
Source§fn project(&self, _cx: &dyn ProjectCx) -> SerialValue
fn project(&self, _cx: &dyn ProjectCx) -> SerialValue
{skeleton, regions: [{id, name, kind, text}]}.
Source§fn piece_class(&self) -> PieceClass
fn piece_class(&self) -> PieceClass
Auto Trait Implementations§
impl Forget for ComposedRegions
impl Freeze for ComposedRegions
impl Move for ComposedRegions
impl RefUnwindSafe for ComposedRegions
impl Send for ComposedRegionswhere
RawVecInner: Send,
impl Sync for ComposedRegionswhere
RawVecInner: Sync,
impl Unpin for ComposedRegions
impl UnsafeUnpin for ComposedRegionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ComposedRegion>: UnsafeUnpin,
impl UnwindSafe for ComposedRegionswhere
RawVecInner: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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