Skip to main content

Node

Enum Node 

Source
pub enum Node {
Show 20 variants Sequence(Sequence), Stack(Stack), Grid(Grid), Media(Media), Text(Text), Color(ColorFill), Captions(Captions), Layout(Layout), Audio(Audio), Raw(Raw), Slideshow(Slideshow), CaptionedVideo(CaptionedVideo), Title(Title), TitleCard(Title), LowerThird(LowerThird), EndCard(EndCard), ComparisonGrid(ComparisonGrid), Reframe(Reframe), Logo(Logo), MusicBed(MusicBed),
}
Expand description

One part of a video.

Variants§

§

Sequence(Sequence)

Children one after another, with transitions between them.

§

Stack(Stack)

Children over each other, each over the ones before.

§

Grid(Grid)

Children in the cells of a grid, row by row.

§

Media(Media)

A video or still file.

§

Text(Text)

Text.

§

Color(ColorFill)

An area painted one color.

§

Captions(Captions)

Timed text from cues, a SubRip or WebVTT file, or word timestamps.

§

Layout(Layout)

A layout generator: boxes, text and shapes laid out by CSS flexbox and grid.

§

Audio(Audio)

A sound file.

§

Raw(Raw)

Part of a project (sources, tracks, compositions) at its own times. Overlays only.

§

Slideshow(Slideshow)

Stills or clips in turn, with transitions and slow zooms.

§

CaptionedVideo(CaptionedVideo)

A video under its captions.

§

Title(Title)

A title (and subtitle) over what is under it, laid out on the whole canvas.

§

TitleCard(Title)

A title (and subtitle) on the theme’s surface, over the whole canvas.

§

LowerThird(LowerThird)

A name and role in the canvas’s lower left.

§

EndCard(EndCard)

A closing card over the whole canvas: a logo, a title and a subtitle on the theme’s surface.

§

ComparisonGrid(ComparisonGrid)

Clips side by side in a grid, each labeled.

§

Reframe(Reframe)

A video fitted to a canvas of another shape, over a blurred copy of itself.

A picture in a corner.

§

MusicBed(MusicBed)

Music under the video, faded in and out and ducked under speech.

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Node

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Node

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Node

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Node

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Node

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnsafeUnpin for Node

§

impl UnwindSafe for Node

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.