UnorderedChildListTreeData

Struct UnorderedChildListTreeData 

Source
pub struct UnorderedChildListTreeData<O: TreeObj> { /* private fields */ }

Implementations§

Source§

impl<O: TreeObj> UnorderedChildListTreeData<O>

Source

pub fn instance( &self, parent: O::ParentPtr, recorder: &mut Recorder<'_, O::Project>, ) -> UnorderedChildList<O>

Examples found in repository?
examples/slides.rs (line 129)
124    fn instance(data: &SlideTreeData, ptr: alisa::Ptr<Slide>, parent: (), recorder: &mut alisa::Recorder<SlipsProject>) {
125        use alisa::Object;
126        let slide = Slide {
127            parent,
128            title: data.title.clone(),
129            text_boxes: data.text_boxes.instance(ptr, recorder)
130        };
131        Self::add(recorder, ptr, slide);
132    }

Trait Implementations§

Source§

impl<O: TreeObj> Default for UnorderedChildListTreeData<O>

Source§

fn default() -> Self

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

impl<O: TreeObj> Serializable<<O as Object>::Project> for UnorderedChildListTreeData<O>

Source§

fn serialize( &self, context: &SerializationContext<'_, <O as Object>::Project>, ) -> Value

Source§

fn deserialize( data: &Value, context: &mut DeserializationContext<'_, <O as Object>::Project>, ) -> Option<Self>

Auto Trait Implementations§

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.