pub struct EdgeViewDescriptor {
pub renderer_key: Option<String>,
pub label: Option<String>,
pub label_anchor: Option<EdgeLabelAnchor>,
pub source_marker_key: Option<String>,
pub target_marker_key: Option<String>,
pub style_token: Option<String>,
pub route_kind: Option<EdgeRouteKind>,
pub hit_target_width: Option<f32>,
}Expand description
Renderer-neutral presentation metadata for an edge.
Fields§
§renderer_key: Option<String>Adapter-facing renderer key.
label: Option<String>Adapter-facing label text when the label is a view concern.
label_anchor: Option<EdgeLabelAnchor>Label placement hint.
source_marker_key: Option<String>Source marker key, interpreted by adapters.
target_marker_key: Option<String>Target marker key, interpreted by adapters.
style_token: Option<String>Style token, interpreted by adapters.
route_kind: Option<EdgeRouteKind>Route-style hint, interpreted by adapters and runtime geometry projections.
hit_target_width: Option<f32>Optional hit-test width hint in logical pixels.
Implementations§
Source§impl EdgeViewDescriptor
impl EdgeViewDescriptor
pub fn new() -> Self
pub fn with_renderer_key(self, renderer_key: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label_anchor(self, label_anchor: EdgeLabelAnchor) -> Self
pub fn with_source_marker_key( self, source_marker_key: impl Into<String>, ) -> Self
pub fn with_target_marker_key( self, target_marker_key: impl Into<String>, ) -> Self
pub fn with_style_token(self, style_token: impl Into<String>) -> Self
pub fn with_route_kind(self, route_kind: EdgeRouteKind) -> Self
pub fn with_hit_target_width(self, hit_target_width: f32) -> Self
pub fn is_default(&self) -> bool
Trait Implementations§
Source§impl Clone for EdgeViewDescriptor
impl Clone for EdgeViewDescriptor
Source§fn clone(&self) -> EdgeViewDescriptor
fn clone(&self) -> EdgeViewDescriptor
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 EdgeViewDescriptor
impl Debug for EdgeViewDescriptor
Source§impl Default for EdgeViewDescriptor
impl Default for EdgeViewDescriptor
Source§fn default() -> EdgeViewDescriptor
fn default() -> EdgeViewDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EdgeViewDescriptor
impl<'de> Deserialize<'de> for EdgeViewDescriptor
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 PartialEq for EdgeViewDescriptor
impl PartialEq for EdgeViewDescriptor
Source§fn eq(&self, other: &EdgeViewDescriptor) -> bool
fn eq(&self, other: &EdgeViewDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EdgeViewDescriptor
impl Serialize for EdgeViewDescriptor
impl StructuralPartialEq for EdgeViewDescriptor
Auto Trait Implementations§
impl Freeze for EdgeViewDescriptor
impl RefUnwindSafe for EdgeViewDescriptor
impl Send for EdgeViewDescriptor
impl Sync for EdgeViewDescriptor
impl Unpin for EdgeViewDescriptor
impl UnsafeUnpin for EdgeViewDescriptor
impl UnwindSafe for EdgeViewDescriptor
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