pub struct ScrollSnapHighlightConfigBuilder { /* private fields */ }Expand description
Builder for ScrollSnapHighlightConfig.
Implementations§
Source§impl ScrollSnapHighlightConfigBuilder
impl ScrollSnapHighlightConfigBuilder
Sourcepub fn scroll_snap_container_highlight_config<VALUE: Into<ScrollSnapContainerHighlightConfig>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn scroll_snap_container_highlight_config<VALUE: Into<ScrollSnapContainerHighlightConfig>>( &mut self, value: VALUE, ) -> &mut Self
A descriptor for the highlight appearance of scroll snap containers.
Sourcepub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
pub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
Identifier of the node to highlight.
Sourcepub fn build(
&self,
) -> Result<ScrollSnapHighlightConfig, ScrollSnapHighlightConfigBuilderError>
pub fn build( &self, ) -> Result<ScrollSnapHighlightConfig, ScrollSnapHighlightConfigBuilderError>
Trait Implementations§
Source§impl Clone for ScrollSnapHighlightConfigBuilder
impl Clone for ScrollSnapHighlightConfigBuilder
Source§fn clone(&self) -> ScrollSnapHighlightConfigBuilder
fn clone(&self) -> ScrollSnapHighlightConfigBuilder
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 ScrollSnapHighlightConfigBuilder
impl RefUnwindSafe for ScrollSnapHighlightConfigBuilder
impl Send for ScrollSnapHighlightConfigBuilder
impl Sync for ScrollSnapHighlightConfigBuilder
impl Unpin for ScrollSnapHighlightConfigBuilder
impl UnsafeUnpin for ScrollSnapHighlightConfigBuilder
impl UnwindSafe for ScrollSnapHighlightConfigBuilder
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