pub struct NodeSurfaceProjection {
pub density: NodeKitContentDensity,
pub slot_limit: usize,
pub compact_values: bool,
pub expand_all_slots: bool,
}Expand description
Adapter-facing, toolkit-neutral semantic surface projection for one node.
Fields§
§density: NodeKitContentDensityCurrent density tier used by the adapter.
slot_limit: usizeMaximum slots the adapter should show at this density.
compact_values: boolWhether the adapter should prioritize compact value previews.
expand_all_slots: boolWhether all visible slots should be shown without truncation.
Implementations§
Source§impl NodeSurfaceProjection
impl NodeSurfaceProjection
pub fn from_layout_hints(layout_hints: &NodeKitLayoutHints, zoom: f32) -> Self
Trait Implementations§
Source§impl Clone for NodeSurfaceProjection
impl Clone for NodeSurfaceProjection
Source§fn clone(&self) -> NodeSurfaceProjection
fn clone(&self) -> NodeSurfaceProjection
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 NodeSurfaceProjection
impl Debug for NodeSurfaceProjection
Source§impl<'de> Deserialize<'de> for NodeSurfaceProjection
impl<'de> Deserialize<'de> for NodeSurfaceProjection
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
impl Eq for NodeSurfaceProjection
Source§impl PartialEq for NodeSurfaceProjection
impl PartialEq for NodeSurfaceProjection
Source§fn eq(&self, other: &NodeSurfaceProjection) -> bool
fn eq(&self, other: &NodeSurfaceProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeSurfaceProjection
impl Serialize for NodeSurfaceProjection
impl StructuralPartialEq for NodeSurfaceProjection
Auto Trait Implementations§
impl Freeze for NodeSurfaceProjection
impl RefUnwindSafe for NodeSurfaceProjection
impl Send for NodeSurfaceProjection
impl Sync for NodeSurfaceProjection
impl Unpin for NodeSurfaceProjection
impl UnsafeUnpin for NodeSurfaceProjection
impl UnwindSafe for NodeSurfaceProjection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.