pub struct FrameResourceTreeBuilder { /* private fields */ }Expand description
Builder for FrameResourceTree.
Implementations§
Source§impl FrameResourceTreeBuilder
impl FrameResourceTreeBuilder
Sourcepub fn frame<VALUE: Into<Frame>>(&mut self, value: VALUE) -> &mut Self
pub fn frame<VALUE: Into<Frame>>(&mut self, value: VALUE) -> &mut Self
Frame information for this tree item.
Sourcepub fn child_frames<VALUE: Into<Vec<FrameResourceTree>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn child_frames<VALUE: Into<Vec<FrameResourceTree>>>( &mut self, value: VALUE, ) -> &mut Self
Child frames.
Sourcepub fn resources<VALUE: Into<Vec<FrameResource>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn resources<VALUE: Into<Vec<FrameResource>>>( &mut self, value: VALUE, ) -> &mut Self
Information about frame resources.
Sourcepub fn build(&self) -> Result<FrameResourceTree, FrameResourceTreeBuilderError>
pub fn build(&self) -> Result<FrameResourceTree, FrameResourceTreeBuilderError>
Trait Implementations§
Source§impl Clone for FrameResourceTreeBuilder
impl Clone for FrameResourceTreeBuilder
Source§fn clone(&self) -> FrameResourceTreeBuilder
fn clone(&self) -> FrameResourceTreeBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FrameResourceTreeBuilder
impl RefUnwindSafe for FrameResourceTreeBuilder
impl Send for FrameResourceTreeBuilder
impl Sync for FrameResourceTreeBuilder
impl Unpin for FrameResourceTreeBuilder
impl UnsafeUnpin for FrameResourceTreeBuilder
impl UnwindSafe for FrameResourceTreeBuilder
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
Mutably borrows from an owned value. Read more