pub struct GraphicsPublished { /* private fields */ }Expand description
The value of the published table of a backend,
flm.graphics.published.<backend> (published_table).
The table contains one PublishedImage for each image of the document,
keyed by the address of the image’s node. The standard publish stage of the
backend writes the table, or a stage that the plan prefers in its place
(see a publish stage of your own).
Implementations§
Source§impl GraphicsPublished
impl GraphicsPublished
Sourcepub fn get(&self, addr: NodeAddr) -> Option<&PublishedImage>
pub fn get(&self, addr: NodeAddr) -> Option<&PublishedImage>
Returns the published image at the node address addr, or None if
no image was published at this address.
Sourcepub fn iter(&self) -> impl Iterator<Item = (NodeAddr, &PublishedImage)> + '_
pub fn iter(&self) -> impl Iterator<Item = (NodeAddr, &PublishedImage)> + '_
Returns every published image, in node-address order.
Sourcepub fn insert(&mut self, addr: NodeAddr, image: PublishedImage)
pub fn insert(&mut self, addr: NodeAddr, image: PublishedImage)
Records image as the published image of the node at the address
addr. An image already recorded for addr is replaced, as
Table::absorb replaces it between the pieces of the table.
Trait Implementations§
Source§impl Clone for GraphicsPublished
impl Clone for GraphicsPublished
Source§impl Debug for GraphicsPublished
impl Debug for GraphicsPublished
Source§impl Default for GraphicsPublished
impl Default for GraphicsPublished
impl Eq for GraphicsPublished
Source§impl PartialEq for GraphicsPublished
impl PartialEq for GraphicsPublished
impl StructuralPartialEq for GraphicsPublished
Source§impl Table for GraphicsPublished
impl Table for GraphicsPublished
Source§fn project(&self, cx: &dyn ProjectCx) -> SerialValue
fn project(&self, cx: &dyn ProjectCx) -> SerialValue
Returns the list of published images, in the order of their node
addresses. Each entry is a map with the keys node and src, and also
srcset if the image has alternative sources.
Source§fn absorb(&mut self, piece: GraphicsPublished)
fn absorb(&mut self, piece: GraphicsPublished)
Source§fn piece_class(&self) -> PieceClass
fn piece_class(&self) -> PieceClass
Auto Trait Implementations§
impl Forget for GraphicsPublished
impl Freeze for GraphicsPublishedwhere
*const LeafNode<NodeAddr, PublishedImage> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(NodeAddr, PublishedImage)>>: Freeze,
impl Move for GraphicsPublished
impl RefUnwindSafe for GraphicsPublished
impl Send for GraphicsPublishedwhere
NodeRef<Owned, NodeAddr, PublishedImage, LeafOrInternal>: Send,
BoxRaw<(NodeAddr, PublishedImage)>: Send,
impl Sync for GraphicsPublishedwhere
NodeRef<Owned, NodeAddr, PublishedImage, LeafOrInternal>: Sync,
BoxRaw<(NodeAddr, PublishedImage)>: Sync,
impl Unpin for GraphicsPublishedwhere
*const LeafNode<NodeAddr, PublishedImage> is !null: Unpin,
Box<(NodeAddr, PublishedImage)>: Unpin,
impl UnsafeUnpin for GraphicsPublishedwhere
*const LeafNode<NodeAddr, PublishedImage> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(NodeAddr, PublishedImage)>>: UnsafeUnpin,
impl UnwindSafe for GraphicsPublished
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