pub struct LayoutEngineRequest {
pub engine: LayoutEngineId,
pub layout: LayoutRequest,
}Expand description
Request for one selected layout engine.
Fields§
§engine: LayoutEngineId§layout: LayoutRequestImplementations§
Source§impl LayoutEngineRequest
impl LayoutEngineRequest
Sourcepub fn new(engine: impl Into<LayoutEngineId>, layout: LayoutRequest) -> Self
pub fn new(engine: impl Into<LayoutEngineId>, layout: LayoutRequest) -> Self
Creates an engine request.
Sourcepub fn dugong(layout: LayoutRequest) -> Self
pub fn dugong(layout: LayoutRequest) -> Self
Creates a request for the built-in dugong engine.
Sourcepub fn tidy_tree(layout: LayoutRequest) -> Self
pub fn tidy_tree(layout: LayoutRequest) -> Self
Creates a request for the built-in tidy tree engine.
Sourcepub fn mind_map_radial(layout: LayoutRequest) -> Self
pub fn mind_map_radial(layout: LayoutRequest) -> Self
Creates a request for the built-in radial mind-map engine.
Sourcepub fn mind_map_freeform(layout: LayoutRequest) -> Self
pub fn mind_map_freeform(layout: LayoutRequest) -> Self
Creates a request for the built-in freeform mind-map engine.
Sourcepub fn with_engine(self, engine: impl Into<LayoutEngineId>) -> Self
pub fn with_engine(self, engine: impl Into<LayoutEngineId>) -> Self
Uses a different engine id.
Sourcepub fn with_layout(self, layout: LayoutRequest) -> Self
pub fn with_layout(self, layout: LayoutRequest) -> Self
Sets the layout request.
Trait Implementations§
Source§impl Clone for LayoutEngineRequest
impl Clone for LayoutEngineRequest
Source§fn clone(&self) -> LayoutEngineRequest
fn clone(&self) -> LayoutEngineRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutEngineRequest
impl Debug for LayoutEngineRequest
Source§impl Default for LayoutEngineRequest
impl Default for LayoutEngineRequest
Source§impl<'de> Deserialize<'de> for LayoutEngineRequest
impl<'de> Deserialize<'de> for LayoutEngineRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LayoutPresetBuilder> for LayoutEngineRequest
impl From<LayoutPresetBuilder> for LayoutEngineRequest
Source§fn from(value: LayoutPresetBuilder) -> Self
fn from(value: LayoutPresetBuilder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LayoutEngineRequest
impl PartialEq for LayoutEngineRequest
Source§fn eq(&self, other: &LayoutEngineRequest) -> bool
fn eq(&self, other: &LayoutEngineRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LayoutEngineRequest
impl Serialize for LayoutEngineRequest
impl StructuralPartialEq for LayoutEngineRequest
Auto Trait Implementations§
impl Freeze for LayoutEngineRequest
impl RefUnwindSafe for LayoutEngineRequest
impl Send for LayoutEngineRequest
impl Sync for LayoutEngineRequest
impl Unpin for LayoutEngineRequest
impl UnsafeUnpin for LayoutEngineRequest
impl UnwindSafe for LayoutEngineRequest
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