sycamore::web

Struct View

pub struct View<T = SsrNode> { /* private fields */ }
Expand description

Represents a view tree.

Internally, this stores a list of nodes. This is the main type that is returned from components.

Implementations§

§

impl<T> View<T>

pub fn new() -> View<T>

Create a new blank view.

pub fn from_node(node: T) -> View<T>

Create a new view with a single node.

pub fn from_nodes(nodes: Vec<T>) -> View<T>

Create a new view with multiple nodes.

pub fn from_dynamic<U>(f: impl FnMut() -> U + 'static) -> View<T>
where U: Into<View<T>> + 'static, T: ViewNode,

Create a new view from a function that returns a view. An alias to ViewNode::create_dynamic_view.

pub fn as_web_sys(&self) -> Vec<Node>
where T: ViewHtmlNode,

Create a flat list of all the web-sys nodes in the view.

Trait Implementations§

§

impl<T> Debug for View<T>

§

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

Formats the value using the given formatter. Read more
§

impl<T> Default for View<T>

§

fn default() -> View<T>

Returns the “default value” for a type. Read more
§

impl<T> From<&'static str> for View<T>
where T: ViewHtmlNode,

§

fn from(t: &'static str) -> View<T>

Converts to this type from the input type.
§

impl<U> From<()> for View<U>

§

fn from(t: ()) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B> From<(A, B)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>,

§

fn from(t: (A, B)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C> From<(A, B, C)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>,

§

fn from(t: (A, B, C)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C, D> From<(A, B, C, D)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>, D: Into<View<U>>,

§

fn from(t: (A, B, C, D)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C, D, E> From<(A, B, C, D, E)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>, D: Into<View<U>>, E: Into<View<U>>,

§

fn from(t: (A, B, C, D, E)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C, D, E, F> From<(A, B, C, D, E, F)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>, D: Into<View<U>>, E: Into<View<U>>, F: Into<View<U>>,

§

fn from(t: (A, B, C, D, E, F)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>, D: Into<View<U>>, E: Into<View<U>>, F: Into<View<U>>, G: Into<View<U>>,

§

fn from(t: (A, B, C, D, E, F, G)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>, D: Into<View<U>>, E: Into<View<U>>, F: Into<View<U>>, G: Into<View<U>>, H: Into<View<U>>,

§

fn from(t: (A, B, C, D, E, F, G, H)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>, D: Into<View<U>>, E: Into<View<U>>, F: Into<View<U>>, G: Into<View<U>>, H: Into<View<U>>, I: Into<View<U>>,

§

fn from(t: (A, B, C, D, E, F, G, H, I)) -> View<U>

Converts to this type from the input type.
§

impl<U, A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for View<U>
where A: Into<View<U>>, B: Into<View<U>>, C: Into<View<U>>, D: Into<View<U>>, E: Into<View<U>>, F: Into<View<U>>, G: Into<View<U>>, H: Into<View<U>>, I: Into<View<U>>, J: Into<View<U>>,

§

fn from(t: (A, B, C, D, E, F, G, H, I, J)) -> View<U>

Converts to this type from the input type.
§

impl<T> From<Children<View<T>>> for View<T>

§

fn from(children: Children<View<T>>) -> View<T>

Converts to this type from the input type.
§

impl<T> From<Cow<'static, str>> for View<T>
where T: ViewHtmlNode,

§

fn from(t: Cow<'static, str>) -> View<T>

Converts to this type from the input type.
§

impl From<CustomElement> for View

§

fn from(el: CustomElement) -> View

Converts to this type from the input type.
§

impl<T, F, U> From<F> for View<T>
where T: ViewNode, F: FnMut() -> U + 'static, U: Into<View<T>> + Any + 'static,

§

fn from(f: F) -> View<T>

Converts to this type from the input type.
§

impl From<HtmlA> for View

§

fn from(el: HtmlA) -> View

Converts to this type from the input type.
§

impl From<HtmlAbbr> for View

§

fn from(el: HtmlAbbr) -> View

Converts to this type from the input type.
§

impl From<HtmlAddress> for View

§

fn from(el: HtmlAddress) -> View

Converts to this type from the input type.
§

impl From<HtmlArea> for View

§

fn from(el: HtmlArea) -> View

Converts to this type from the input type.
§

impl From<HtmlArticle> for View

§

fn from(el: HtmlArticle) -> View

Converts to this type from the input type.
§

impl From<HtmlAside> for View

§

fn from(el: HtmlAside) -> View

Converts to this type from the input type.
§

impl From<HtmlAudio> for View

§

fn from(el: HtmlAudio) -> View

Converts to this type from the input type.
§

impl From<HtmlB> for View

§

fn from(el: HtmlB) -> View

Converts to this type from the input type.
§

impl From<HtmlBase> for View

§

fn from(el: HtmlBase) -> View

Converts to this type from the input type.
§

impl From<HtmlBdi> for View

§

fn from(el: HtmlBdi) -> View

Converts to this type from the input type.
§

impl From<HtmlBdo> for View

§

fn from(el: HtmlBdo) -> View

Converts to this type from the input type.
§

impl From<HtmlBlockquote> for View

§

fn from(el: HtmlBlockquote) -> View

Converts to this type from the input type.
§

impl From<HtmlBody> for View

§

fn from(el: HtmlBody) -> View

Converts to this type from the input type.
§

impl From<HtmlBr> for View

§

fn from(el: HtmlBr) -> View

Converts to this type from the input type.
§

impl From<HtmlButton> for View

§

fn from(el: HtmlButton) -> View

Converts to this type from the input type.
§

impl From<HtmlCanvas> for View

§

fn from(el: HtmlCanvas) -> View

Converts to this type from the input type.
§

impl From<HtmlCaption> for View

§

fn from(el: HtmlCaption) -> View

Converts to this type from the input type.
§

impl From<HtmlCite> for View

§

fn from(el: HtmlCite) -> View

Converts to this type from the input type.
§

impl From<HtmlCode> for View

§

fn from(el: HtmlCode) -> View

Converts to this type from the input type.
§

impl From<HtmlCol> for View

§

fn from(el: HtmlCol) -> View

Converts to this type from the input type.
§

impl From<HtmlColgroup> for View

§

fn from(el: HtmlColgroup) -> View

Converts to this type from the input type.
§

impl From<HtmlData> for View

§

fn from(el: HtmlData) -> View

Converts to this type from the input type.
§

impl From<HtmlDatalist> for View

§

fn from(el: HtmlDatalist) -> View

Converts to this type from the input type.
§

impl From<HtmlDd> for View

§

fn from(el: HtmlDd) -> View

Converts to this type from the input type.
§

impl From<HtmlDel> for View

§

fn from(el: HtmlDel) -> View

Converts to this type from the input type.
§

impl From<HtmlDetails> for View

§

fn from(el: HtmlDetails) -> View

Converts to this type from the input type.
§

impl From<HtmlDfn> for View

§

fn from(el: HtmlDfn) -> View

Converts to this type from the input type.
§

impl From<HtmlDialog> for View

§

fn from(el: HtmlDialog) -> View

Converts to this type from the input type.
§

impl From<HtmlDiv> for View

§

fn from(el: HtmlDiv) -> View

Converts to this type from the input type.
§

impl From<HtmlDl> for View

§

fn from(el: HtmlDl) -> View

Converts to this type from the input type.
§

impl From<HtmlDt> for View

§

fn from(el: HtmlDt) -> View

Converts to this type from the input type.
§

impl From<HtmlEm> for View

§

fn from(el: HtmlEm) -> View

Converts to this type from the input type.
§

impl From<HtmlEmbed> for View

§

fn from(el: HtmlEmbed) -> View

Converts to this type from the input type.
§

impl From<HtmlFieldset> for View

§

fn from(el: HtmlFieldset) -> View

Converts to this type from the input type.
§

impl From<HtmlFigcaption> for View

§

fn from(el: HtmlFigcaption) -> View

Converts to this type from the input type.
§

impl From<HtmlFigure> for View

§

fn from(el: HtmlFigure) -> View

Converts to this type from the input type.
§

impl From<HtmlFooter> for View

§

fn from(el: HtmlFooter) -> View

Converts to this type from the input type.
§

impl From<HtmlForm> for View

§

fn from(el: HtmlForm) -> View

Converts to this type from the input type.
§

impl From<HtmlH1> for View

§

fn from(el: HtmlH1) -> View

Converts to this type from the input type.
§

impl From<HtmlH2> for View

§

fn from(el: HtmlH2) -> View

Converts to this type from the input type.
§

impl From<HtmlH3> for View

§

fn from(el: HtmlH3) -> View

Converts to this type from the input type.
§

impl From<HtmlH4> for View

§

fn from(el: HtmlH4) -> View

Converts to this type from the input type.
§

impl From<HtmlH5> for View

§

fn from(el: HtmlH5) -> View

Converts to this type from the input type.
§

impl From<HtmlH6> for View

§

fn from(el: HtmlH6) -> View

Converts to this type from the input type.
§

impl From<HtmlHead> for View

§

fn from(el: HtmlHead) -> View

Converts to this type from the input type.
§

impl From<HtmlHeader> for View

§

fn from(el: HtmlHeader) -> View

Converts to this type from the input type.
§

impl From<HtmlHgroup> for View

§

fn from(el: HtmlHgroup) -> View

Converts to this type from the input type.
§

impl From<HtmlHr> for View

§

fn from(el: HtmlHr) -> View

Converts to this type from the input type.
§

impl From<HtmlHtml> for View

§

fn from(el: HtmlHtml) -> View

Converts to this type from the input type.
§

impl From<HtmlI> for View

§

fn from(el: HtmlI) -> View

Converts to this type from the input type.
§

impl From<HtmlIframe> for View

§

fn from(el: HtmlIframe) -> View

Converts to this type from the input type.
§

impl From<HtmlImg> for View

§

fn from(el: HtmlImg) -> View

Converts to this type from the input type.
§

impl From<HtmlInput> for View

§

fn from(el: HtmlInput) -> View

Converts to this type from the input type.
§

impl From<HtmlIns> for View

§

fn from(el: HtmlIns) -> View

Converts to this type from the input type.
§

impl From<HtmlKbd> for View

§

fn from(el: HtmlKbd) -> View

Converts to this type from the input type.
§

impl From<HtmlKeygen> for View

§

fn from(el: HtmlKeygen) -> View

Converts to this type from the input type.
§

impl From<HtmlLabel> for View

§

fn from(el: HtmlLabel) -> View

Converts to this type from the input type.
§

impl From<HtmlLegend> for View

§

fn from(el: HtmlLegend) -> View

Converts to this type from the input type.
§

impl From<HtmlLi> for View

§

fn from(el: HtmlLi) -> View

Converts to this type from the input type.
§

impl From<HtmlLink> for View

§

fn from(el: HtmlLink) -> View

Converts to this type from the input type.
§

impl From<HtmlMain> for View

§

fn from(el: HtmlMain) -> View

Converts to this type from the input type.
§

impl From<HtmlMap> for View

§

fn from(el: HtmlMap) -> View

Converts to this type from the input type.
§

impl From<HtmlMark> for View

§

fn from(el: HtmlMark) -> View

Converts to this type from the input type.
§

impl From<HtmlMenu> for View

§

fn from(el: HtmlMenu) -> View

Converts to this type from the input type.
§

impl From<HtmlMenuitem> for View

§

fn from(el: HtmlMenuitem) -> View

Converts to this type from the input type.
§

impl From<HtmlMeta> for View

§

fn from(el: HtmlMeta) -> View

Converts to this type from the input type.
§

impl From<HtmlMeter> for View

§

fn from(el: HtmlMeter) -> View

Converts to this type from the input type.
§

impl From<HtmlNav> for View

§

fn from(el: HtmlNav) -> View

Converts to this type from the input type.
§

impl From<HtmlNoscript> for View

§

fn from(el: HtmlNoscript) -> View

Converts to this type from the input type.
§

impl From<HtmlObject> for View

§

fn from(el: HtmlObject) -> View

Converts to this type from the input type.
§

impl From<HtmlOl> for View

§

fn from(el: HtmlOl) -> View

Converts to this type from the input type.
§

impl From<HtmlOptgroup> for View

§

fn from(el: HtmlOptgroup) -> View

Converts to this type from the input type.
§

impl From<HtmlOption> for View

§

fn from(el: HtmlOption) -> View

Converts to this type from the input type.
§

impl From<HtmlOutput> for View

§

fn from(el: HtmlOutput) -> View

Converts to this type from the input type.
§

impl From<HtmlP> for View

§

fn from(el: HtmlP) -> View

Converts to this type from the input type.
§

impl From<HtmlParam> for View

§

fn from(el: HtmlParam) -> View

Converts to this type from the input type.
§

impl From<HtmlPicture> for View

§

fn from(el: HtmlPicture) -> View

Converts to this type from the input type.
§

impl From<HtmlPre> for View

§

fn from(el: HtmlPre) -> View

Converts to this type from the input type.
§

impl From<HtmlProgress> for View

§

fn from(el: HtmlProgress) -> View

Converts to this type from the input type.
§

impl From<HtmlQ> for View

§

fn from(el: HtmlQ) -> View

Converts to this type from the input type.
§

impl From<HtmlRp> for View

§

fn from(el: HtmlRp) -> View

Converts to this type from the input type.
§

impl From<HtmlRt> for View

§

fn from(el: HtmlRt) -> View

Converts to this type from the input type.
§

impl From<HtmlRuby> for View

§

fn from(el: HtmlRuby) -> View

Converts to this type from the input type.
§

impl From<HtmlS> for View

§

fn from(el: HtmlS) -> View

Converts to this type from the input type.
§

impl From<HtmlSamp> for View

§

fn from(el: HtmlSamp) -> View

Converts to this type from the input type.
§

impl From<HtmlScript> for View

§

fn from(el: HtmlScript) -> View

Converts to this type from the input type.
§

impl From<HtmlSection> for View

§

fn from(el: HtmlSection) -> View

Converts to this type from the input type.
§

impl From<HtmlSelect> for View

§

fn from(el: HtmlSelect) -> View

Converts to this type from the input type.
§

impl From<HtmlSmall> for View

§

fn from(el: HtmlSmall) -> View

Converts to this type from the input type.
§

impl From<HtmlSource> for View

§

fn from(el: HtmlSource) -> View

Converts to this type from the input type.
§

impl From<HtmlSpan> for View

§

fn from(el: HtmlSpan) -> View

Converts to this type from the input type.
§

impl From<HtmlStrong> for View

§

fn from(el: HtmlStrong) -> View

Converts to this type from the input type.
§

impl From<HtmlStyle> for View

§

fn from(el: HtmlStyle) -> View

Converts to this type from the input type.
§

impl From<HtmlSub> for View

§

fn from(el: HtmlSub) -> View

Converts to this type from the input type.
§

impl From<HtmlSummary> for View

§

fn from(el: HtmlSummary) -> View

Converts to this type from the input type.
§

impl From<HtmlSup> for View

§

fn from(el: HtmlSup) -> View

Converts to this type from the input type.
§

impl From<HtmlTable> for View

§

fn from(el: HtmlTable) -> View

Converts to this type from the input type.
§

impl From<HtmlTbody> for View

§

fn from(el: HtmlTbody) -> View

Converts to this type from the input type.
§

impl From<HtmlTd> for View

§

fn from(el: HtmlTd) -> View

Converts to this type from the input type.
§

impl From<HtmlTemplate> for View

§

fn from(el: HtmlTemplate) -> View

Converts to this type from the input type.
§

impl From<HtmlTextarea> for View

§

fn from(el: HtmlTextarea) -> View

Converts to this type from the input type.
§

impl From<HtmlTfoot> for View

§

fn from(el: HtmlTfoot) -> View

Converts to this type from the input type.
§

impl From<HtmlTh> for View

§

fn from(el: HtmlTh) -> View

Converts to this type from the input type.
§

impl From<HtmlThead> for View

§

fn from(el: HtmlThead) -> View

Converts to this type from the input type.
§

impl From<HtmlTime> for View

§

fn from(el: HtmlTime) -> View

Converts to this type from the input type.
§

impl From<HtmlTitle> for View

§

fn from(el: HtmlTitle) -> View

Converts to this type from the input type.
§

impl From<HtmlTr> for View

§

fn from(el: HtmlTr) -> View

Converts to this type from the input type.
§

impl From<HtmlTrack> for View

§

fn from(el: HtmlTrack) -> View

Converts to this type from the input type.
§

impl From<HtmlU> for View

§

fn from(el: HtmlU) -> View

Converts to this type from the input type.
§

impl From<HtmlUl> for View

§

fn from(el: HtmlUl) -> View

Converts to this type from the input type.
§

impl From<HtmlVar> for View

§

fn from(el: HtmlVar) -> View

Converts to this type from the input type.
§

impl From<HtmlVideo> for View

§

fn from(el: HtmlVideo) -> View

Converts to this type from the input type.
§

impl From<HtmlWbr> for View

§

fn from(el: HtmlWbr) -> View

Converts to this type from the input type.
§

impl<T> From<Option<View<T>>> for View<T>

§

fn from(node: Option<View<T>>) -> View<T>

Converts to this type from the input type.
§

impl From<SsrNode> for View

§

fn from(node: SsrNode) -> View

Converts to this type from the input type.
§

impl<T> From<String> for View<T>
where T: ViewHtmlNode,

§

fn from(t: String) -> View<T>

Converts to this type from the input type.
§

impl From<SvgAnimate> for View

§

fn from(el: SvgAnimate) -> View

Converts to this type from the input type.
§

impl From<SvgAnimateMotion> for View

§

fn from(el: SvgAnimateMotion) -> View

Converts to this type from the input type.
§

impl From<SvgAnimateTransform> for View

§

fn from(el: SvgAnimateTransform) -> View

Converts to this type from the input type.
§

impl From<SvgCircle> for View

§

fn from(el: SvgCircle) -> View

Converts to this type from the input type.
§

impl From<SvgClipPath> for View

§

fn from(el: SvgClipPath) -> View

Converts to this type from the input type.
§

impl From<SvgDefs> for View

§

fn from(el: SvgDefs) -> View

Converts to this type from the input type.
§

impl From<SvgDesc> for View

§

fn from(el: SvgDesc) -> View

Converts to this type from the input type.
§

impl From<SvgDiscard> for View

§

fn from(el: SvgDiscard) -> View

Converts to this type from the input type.
§

impl From<SvgEllipse> for View

§

fn from(el: SvgEllipse) -> View

Converts to this type from the input type.
§

impl From<SvgFeBlend> for View

§

fn from(el: SvgFeBlend) -> View

Converts to this type from the input type.
§

impl From<SvgFeColorMatrix> for View

§

fn from(el: SvgFeColorMatrix) -> View

Converts to this type from the input type.
§

impl From<SvgFeComponentTransfer> for View

§

fn from(el: SvgFeComponentTransfer) -> View

Converts to this type from the input type.
§

impl From<SvgFeComposite> for View

§

fn from(el: SvgFeComposite) -> View

Converts to this type from the input type.
§

impl From<SvgFeConvolveMatrix> for View

§

fn from(el: SvgFeConvolveMatrix) -> View

Converts to this type from the input type.
§

impl From<SvgFeDiffuseLighting> for View

§

fn from(el: SvgFeDiffuseLighting) -> View

Converts to this type from the input type.
§

impl From<SvgFeDisplacementMap> for View

§

fn from(el: SvgFeDisplacementMap) -> View

Converts to this type from the input type.
§

impl From<SvgFeDistantLight> for View

§

fn from(el: SvgFeDistantLight) -> View

Converts to this type from the input type.
§

impl From<SvgFeDropShadow> for View

§

fn from(el: SvgFeDropShadow) -> View

Converts to this type from the input type.
§

impl From<SvgFeFlood> for View

§

fn from(el: SvgFeFlood) -> View

Converts to this type from the input type.
§

impl From<SvgFeFuncA> for View

§

fn from(el: SvgFeFuncA) -> View

Converts to this type from the input type.
§

impl From<SvgFeFuncB> for View

§

fn from(el: SvgFeFuncB) -> View

Converts to this type from the input type.
§

impl From<SvgFeFuncG> for View

§

fn from(el: SvgFeFuncG) -> View

Converts to this type from the input type.
§

impl From<SvgFeFuncR> for View

§

fn from(el: SvgFeFuncR) -> View

Converts to this type from the input type.
§

impl From<SvgFeGaussianBlur> for View

§

fn from(el: SvgFeGaussianBlur) -> View

Converts to this type from the input type.
§

impl From<SvgFeImage> for View

§

fn from(el: SvgFeImage) -> View

Converts to this type from the input type.
§

impl From<SvgFeMerge> for View

§

fn from(el: SvgFeMerge) -> View

Converts to this type from the input type.
§

impl From<SvgFeMergeNode> for View

§

fn from(el: SvgFeMergeNode) -> View

Converts to this type from the input type.
§

impl From<SvgFeMorphology> for View

§

fn from(el: SvgFeMorphology) -> View

Converts to this type from the input type.
§

impl From<SvgFeOffset> for View

§

fn from(el: SvgFeOffset) -> View

Converts to this type from the input type.
§

impl From<SvgFePointLight> for View

§

fn from(el: SvgFePointLight) -> View

Converts to this type from the input type.
§

impl From<SvgFeSpecularLighting> for View

§

fn from(el: SvgFeSpecularLighting) -> View

Converts to this type from the input type.
§

impl From<SvgFeSpotLight> for View

§

fn from(el: SvgFeSpotLight) -> View

Converts to this type from the input type.
§

impl From<SvgFeTile> for View

§

fn from(el: SvgFeTile) -> View

Converts to this type from the input type.
§

impl From<SvgFeTurbulence> for View

§

fn from(el: SvgFeTurbulence) -> View

Converts to this type from the input type.
§

impl From<SvgFilter> for View

§

fn from(el: SvgFilter) -> View

Converts to this type from the input type.
§

impl From<SvgForeignObject> for View

§

fn from(el: SvgForeignObject) -> View

Converts to this type from the input type.
§

impl From<SvgG> for View

§

fn from(el: SvgG) -> View

Converts to this type from the input type.
§

impl From<SvgHatch> for View

§

fn from(el: SvgHatch) -> View

Converts to this type from the input type.
§

impl From<SvgHatchpath> for View

§

fn from(el: SvgHatchpath) -> View

Converts to this type from the input type.
§

impl From<SvgImage> for View

§

fn from(el: SvgImage) -> View

Converts to this type from the input type.
§

impl From<SvgLine> for View

§

fn from(el: SvgLine) -> View

Converts to this type from the input type.
§

impl From<SvgLinearGradient> for View

§

fn from(el: SvgLinearGradient) -> View

Converts to this type from the input type.
§

impl From<SvgMarker> for View

§

fn from(el: SvgMarker) -> View

Converts to this type from the input type.
§

impl From<SvgMask> for View

§

fn from(el: SvgMask) -> View

Converts to this type from the input type.
§

impl From<SvgMetadata> for View

§

fn from(el: SvgMetadata) -> View

Converts to this type from the input type.
§

impl From<SvgMpath> for View

§

fn from(el: SvgMpath) -> View

Converts to this type from the input type.
§

impl From<SvgPath> for View

§

fn from(el: SvgPath) -> View

Converts to this type from the input type.
§

impl From<SvgPattern> for View

§

fn from(el: SvgPattern) -> View

Converts to this type from the input type.
§

impl From<SvgPolygon> for View

§

fn from(el: SvgPolygon) -> View

Converts to this type from the input type.
§

impl From<SvgPolyline> for View

§

fn from(el: SvgPolyline) -> View

Converts to this type from the input type.
§

impl From<SvgRadialGradient> for View

§

fn from(el: SvgRadialGradient) -> View

Converts to this type from the input type.
§

impl From<SvgRect> for View

§

fn from(el: SvgRect) -> View

Converts to this type from the input type.
§

impl From<SvgSet> for View

§

fn from(el: SvgSet) -> View

Converts to this type from the input type.
§

impl From<SvgStop> for View

§

fn from(el: SvgStop) -> View

Converts to this type from the input type.
§

impl From<SvgSvg> for View

§

fn from(el: SvgSvg) -> View

Converts to this type from the input type.
§

impl From<SvgSvgA> for View

§

fn from(el: SvgSvgA) -> View

Converts to this type from the input type.
§

impl From<SvgSvgScript> for View

§

fn from(el: SvgSvgScript) -> View

Converts to this type from the input type.
§

impl From<SvgSvgStyle> for View

§

fn from(el: SvgSvgStyle) -> View

Converts to this type from the input type.
§

impl From<SvgSvgTitle> for View

§

fn from(el: SvgSvgTitle) -> View

Converts to this type from the input type.
§

impl From<SvgSwitch> for View

§

fn from(el: SvgSwitch) -> View

Converts to this type from the input type.
§

impl From<SvgSymbol> for View

§

fn from(el: SvgSymbol) -> View

Converts to this type from the input type.
§

impl From<SvgText> for View

§

fn from(el: SvgText) -> View

Converts to this type from the input type.
§

impl From<SvgTextPath> for View

§

fn from(el: SvgTextPath) -> View

Converts to this type from the input type.
§

impl From<SvgTspan> for View

§

fn from(el: SvgTspan) -> View

Converts to this type from the input type.
§

impl From<SvgUse> for View

§

fn from(el: SvgUse) -> View

Converts to this type from the input type.
§

impl From<SvgView> for View

§

fn from(el: SvgView) -> View

Converts to this type from the input type.
§

impl<T> From<Vec<View<T>>> for View<T>

§

fn from(nodes: Vec<View<T>>) -> View<T>

Converts to this type from the input type.
§

impl<T> From<f32> for View<T>
where T: ViewHtmlNode,

§

fn from(t: f32) -> View<T>

Converts to this type from the input type.
§

impl<T> From<f64> for View<T>
where T: ViewHtmlNode,

§

fn from(t: f64) -> View<T>

Converts to this type from the input type.
§

impl<T> From<i128> for View<T>
where T: ViewHtmlNode,

§

fn from(t: i128) -> View<T>

Converts to this type from the input type.
§

impl<T> From<i16> for View<T>
where T: ViewHtmlNode,

§

fn from(t: i16) -> View<T>

Converts to this type from the input type.
§

impl<T> From<i32> for View<T>
where T: ViewHtmlNode,

§

fn from(t: i32) -> View<T>

Converts to this type from the input type.
§

impl<T> From<i64> for View<T>
where T: ViewHtmlNode,

§

fn from(t: i64) -> View<T>

Converts to this type from the input type.
§

impl<T> From<i8> for View<T>
where T: ViewHtmlNode,

§

fn from(t: i8) -> View<T>

Converts to this type from the input type.
§

impl<T> From<isize> for View<T>
where T: ViewHtmlNode,

§

fn from(t: isize) -> View<T>

Converts to this type from the input type.
§

impl<T> From<u128> for View<T>
where T: ViewHtmlNode,

§

fn from(t: u128) -> View<T>

Converts to this type from the input type.
§

impl<T> From<u16> for View<T>
where T: ViewHtmlNode,

§

fn from(t: u16) -> View<T>

Converts to this type from the input type.
§

impl<T> From<u32> for View<T>
where T: ViewHtmlNode,

§

fn from(t: u32) -> View<T>

Converts to this type from the input type.
§

impl<T> From<u64> for View<T>
where T: ViewHtmlNode,

§

fn from(t: u64) -> View<T>

Converts to this type from the input type.
§

impl<T> From<u8> for View<T>
where T: ViewHtmlNode,

§

fn from(t: u8) -> View<T>

Converts to this type from the input type.
§

impl<T> From<usize> for View<T>
where T: ViewHtmlNode,

§

fn from(t: usize) -> View<T>

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<T> Freeze for View<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for View<T>
where T: RefUnwindSafe,

§

impl<T> Send for View<T>
where T: Send,

§

impl<T> Sync for View<T>
where T: Sync,

§

impl<T> Unpin for View<T>
where T: Unpin,

§

impl<T> UnwindSafe for View<T>

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
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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.