pub struct ConnectorStrokeRoles { /* private fields */ }Expand description
Complete immutable ConnectorStrokeRoles appearance component.
Implementations§
Source§impl ConnectorStrokeRoles
impl ConnectorStrokeRoles
Sourcepub fn new(
waterfall_connector: StrokeTheme,
dumbbell_connector: StrokeTheme,
) -> Result<ConnectorStrokeRoles, Error>
pub fn new( waterfall_connector: StrokeTheme, dumbbell_connector: StrokeTheme, ) -> Result<ConnectorStrokeRoles, Error>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_waterfall_connector(&self) -> &StrokeTheme
pub fn get_waterfall_connector(&self) -> &StrokeTheme
Borrow the complete waterfall_connector value.
Sourcepub fn waterfall_connector(
self,
value: StrokeTheme,
) -> Result<ConnectorStrokeRoles, Error>
pub fn waterfall_connector( self, value: StrokeTheme, ) -> Result<ConnectorStrokeRoles, Error>
Replace only waterfall_connector, validating the complete resulting component.
Sourcepub fn get_dumbbell_connector(&self) -> &StrokeTheme
pub fn get_dumbbell_connector(&self) -> &StrokeTheme
Borrow the complete dumbbell_connector value.
Sourcepub fn dumbbell_connector(
self,
value: StrokeTheme,
) -> Result<ConnectorStrokeRoles, Error>
pub fn dumbbell_connector( self, value: StrokeTheme, ) -> Result<ConnectorStrokeRoles, Error>
Replace only dumbbell_connector, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for ConnectorStrokeRoles
impl Clone for ConnectorStrokeRoles
Source§fn clone(&self) -> ConnectorStrokeRoles
fn clone(&self) -> ConnectorStrokeRoles
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 ConnectorStrokeRoles
impl Debug for ConnectorStrokeRoles
Source§impl PartialEq for ConnectorStrokeRoles
impl PartialEq for ConnectorStrokeRoles
impl StructuralPartialEq for ConnectorStrokeRoles
Auto Trait Implementations§
impl Forget for ConnectorStrokeRoles
impl Freeze for ConnectorStrokeRoles
impl Move for ConnectorStrokeRoles
impl RefUnwindSafe for ConnectorStrokeRoles
impl Send for ConnectorStrokeRoles
impl Sync for ConnectorStrokeRoles
impl Unpin for ConnectorStrokeRoles
impl UnsafeUnpin for ConnectorStrokeRoles
impl UnwindSafe for ConnectorStrokeRoles
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.