pub struct VertexAttributes { /* private fields */ }
Expand description
Vertex attributes.
Implementations§
Source§impl VertexAttributes
impl VertexAttributes
Sourcepub fn insert_raw_parts(&mut self, key: &str, value: &str) -> bool
pub fn insert_raw_parts(&mut self, key: &str, value: &str) -> bool
Sourcepub fn set_area(&mut self, s: &str) -> bool
pub fn set_area(&mut self, s: &str) -> bool
Set Attribute::Area
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_area(&mut self) -> bool
pub fn unset_area(&mut self) -> bool
Unset Attribute::Area
attribute. Returns whether the attribute was set.
Sourcepub fn set_class(&mut self, s: &str) -> bool
pub fn set_class(&mut self, s: &str) -> bool
Set Attribute::Class
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_class(&mut self) -> bool
pub fn unset_class(&mut self) -> bool
Unset Attribute::Class
attribute. Returns whether the attribute was set.
Sourcepub fn set_color(&mut self, s: &str) -> bool
pub fn set_color(&mut self, s: &str) -> bool
Set Attribute::Color
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_color(&mut self) -> bool
pub fn unset_color(&mut self) -> bool
Unset Attribute::Color
attribute. Returns whether the attribute was set.
Sourcepub fn set_colorscheme(&mut self, s: &str) -> bool
pub fn set_colorscheme(&mut self, s: &str) -> bool
Set Attribute::Colorscheme
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_colorscheme(&mut self) -> bool
pub fn unset_colorscheme(&mut self) -> bool
Unset Attribute::Colorscheme
attribute. Returns whether the attribute was set.
Sourcepub fn set_comment(&mut self, s: &str) -> bool
pub fn set_comment(&mut self, s: &str) -> bool
Set Attribute::Comment
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_comment(&mut self) -> bool
pub fn unset_comment(&mut self) -> bool
Unset Attribute::Comment
attribute. Returns whether the attribute was set.
Sourcepub fn set_distortion(&mut self, s: &str) -> bool
pub fn set_distortion(&mut self, s: &str) -> bool
Set Attribute::Distortion
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_distortion(&mut self) -> bool
pub fn unset_distortion(&mut self) -> bool
Unset Attribute::Distortion
attribute. Returns whether the attribute was set.
Sourcepub fn set_fillcolor(&mut self, s: &str) -> bool
pub fn set_fillcolor(&mut self, s: &str) -> bool
Set Attribute::Fillcolor
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_fillcolor(&mut self) -> bool
pub fn unset_fillcolor(&mut self) -> bool
Unset Attribute::Fillcolor
attribute. Returns whether the attribute was set.
Sourcepub fn set_fixedsize(&mut self, s: &str) -> bool
pub fn set_fixedsize(&mut self, s: &str) -> bool
Set Attribute::Fixedsize
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_fixedsize(&mut self) -> bool
pub fn unset_fixedsize(&mut self) -> bool
Unset Attribute::Fixedsize
attribute. Returns whether the attribute was set.
Sourcepub fn set_fontcolor(&mut self, s: &str) -> bool
pub fn set_fontcolor(&mut self, s: &str) -> bool
Set Attribute::Fontcolor
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_fontcolor(&mut self) -> bool
pub fn unset_fontcolor(&mut self) -> bool
Unset Attribute::Fontcolor
attribute. Returns whether the attribute was set.
Sourcepub fn set_fontname(&mut self, s: &str) -> bool
pub fn set_fontname(&mut self, s: &str) -> bool
Set Attribute::Fontname
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_fontname(&mut self) -> bool
pub fn unset_fontname(&mut self) -> bool
Unset Attribute::Fontname
attribute. Returns whether the attribute was set.
Sourcepub fn set_fontsize(&mut self, s: &str) -> bool
pub fn set_fontsize(&mut self, s: &str) -> bool
Set Attribute::Fontsize
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_fontsize(&mut self) -> bool
pub fn unset_fontsize(&mut self) -> bool
Unset Attribute::Fontsize
attribute. Returns whether the attribute was set.
Sourcepub fn set_gradientangle(&mut self, s: &str) -> bool
pub fn set_gradientangle(&mut self, s: &str) -> bool
Set Attribute::Gradientangle
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_gradientangle(&mut self) -> bool
pub fn unset_gradientangle(&mut self) -> bool
Unset Attribute::Gradientangle
attribute. Returns whether the attribute was set.
Sourcepub fn set_group(&mut self, s: &str) -> bool
pub fn set_group(&mut self, s: &str) -> bool
Set Attribute::Group
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_group(&mut self) -> bool
pub fn unset_group(&mut self) -> bool
Unset Attribute::Group
attribute. Returns whether the attribute was set.
Sourcepub fn set_height(&mut self, s: &str) -> bool
pub fn set_height(&mut self, s: &str) -> bool
Set Attribute::Height
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_height(&mut self) -> bool
pub fn unset_height(&mut self) -> bool
Unset Attribute::Height
attribute. Returns whether the attribute was set.
Sourcepub fn set_href(&mut self, s: &str) -> bool
pub fn set_href(&mut self, s: &str) -> bool
Set Attribute::Href
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_href(&mut self) -> bool
pub fn unset_href(&mut self) -> bool
Unset Attribute::Href
attribute. Returns whether the attribute was set.
Sourcepub fn set_id(&mut self, s: &str) -> bool
pub fn set_id(&mut self, s: &str) -> bool
Set Attribute::Id
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_id(&mut self) -> bool
pub fn unset_id(&mut self) -> bool
Unset Attribute::Id
attribute. Returns whether the attribute was set.
Sourcepub fn set_image(&mut self, s: &str) -> bool
pub fn set_image(&mut self, s: &str) -> bool
Set Attribute::Image
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_image(&mut self) -> bool
pub fn unset_image(&mut self) -> bool
Unset Attribute::Image
attribute. Returns whether the attribute was set.
Sourcepub fn set_imagepos(&mut self, s: &str) -> bool
pub fn set_imagepos(&mut self, s: &str) -> bool
Set Attribute::Imagepos
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_imagepos(&mut self) -> bool
pub fn unset_imagepos(&mut self) -> bool
Unset Attribute::Imagepos
attribute. Returns whether the attribute was set.
Sourcepub fn set_imagescale(&mut self, s: &str) -> bool
pub fn set_imagescale(&mut self, s: &str) -> bool
Set Attribute::Imagescale
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_imagescale(&mut self) -> bool
pub fn unset_imagescale(&mut self) -> bool
Unset Attribute::Imagescale
attribute. Returns whether the attribute was set.
Sourcepub fn set_label(&mut self, s: &str) -> bool
pub fn set_label(&mut self, s: &str) -> bool
Set Attribute::Label
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_label(&mut self) -> bool
pub fn unset_label(&mut self) -> bool
Unset Attribute::Label
attribute. Returns whether the attribute was set.
Sourcepub fn set_labelloc(&mut self, s: &str) -> bool
pub fn set_labelloc(&mut self, s: &str) -> bool
Set Attribute::Labelloc
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_labelloc(&mut self) -> bool
pub fn unset_labelloc(&mut self) -> bool
Unset Attribute::Labelloc
attribute. Returns whether the attribute was set.
Sourcepub fn set_layer(&mut self, s: &str) -> bool
pub fn set_layer(&mut self, s: &str) -> bool
Set Attribute::Layer
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_layer(&mut self) -> bool
pub fn unset_layer(&mut self) -> bool
Unset Attribute::Layer
attribute. Returns whether the attribute was set.
Sourcepub fn set_margin(&mut self, s: &str) -> bool
pub fn set_margin(&mut self, s: &str) -> bool
Set Attribute::Margin
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_margin(&mut self) -> bool
pub fn unset_margin(&mut self) -> bool
Unset Attribute::Margin
attribute. Returns whether the attribute was set.
Sourcepub fn set_nojustify(&mut self, s: &str) -> bool
pub fn set_nojustify(&mut self, s: &str) -> bool
Set Attribute::Nojustify
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_nojustify(&mut self) -> bool
pub fn unset_nojustify(&mut self) -> bool
Unset Attribute::Nojustify
attribute. Returns whether the attribute was set.
Sourcepub fn set_ordering(&mut self, s: &str) -> bool
pub fn set_ordering(&mut self, s: &str) -> bool
Set Attribute::Ordering
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_ordering(&mut self) -> bool
pub fn unset_ordering(&mut self) -> bool
Unset Attribute::Ordering
attribute. Returns whether the attribute was set.
Sourcepub fn set_orientation(&mut self, s: &str) -> bool
pub fn set_orientation(&mut self, s: &str) -> bool
Set Attribute::Orientation
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_orientation(&mut self) -> bool
pub fn unset_orientation(&mut self) -> bool
Unset Attribute::Orientation
attribute. Returns whether the attribute was set.
Sourcepub fn set_penwidth(&mut self, s: &str) -> bool
pub fn set_penwidth(&mut self, s: &str) -> bool
Set Attribute::Penwidth
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_penwidth(&mut self) -> bool
pub fn unset_penwidth(&mut self) -> bool
Unset Attribute::Penwidth
attribute. Returns whether the attribute was set.
Sourcepub fn set_peripheries(&mut self, s: &str) -> bool
pub fn set_peripheries(&mut self, s: &str) -> bool
Set Attribute::Peripheries
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_peripheries(&mut self) -> bool
pub fn unset_peripheries(&mut self) -> bool
Unset Attribute::Peripheries
attribute. Returns whether the attribute was set.
Sourcepub fn set_pin(&mut self, s: &str) -> bool
pub fn set_pin(&mut self, s: &str) -> bool
Set Attribute::Pin
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_pin(&mut self) -> bool
pub fn unset_pin(&mut self) -> bool
Unset Attribute::Pin
attribute. Returns whether the attribute was set.
Sourcepub fn set_pos(&mut self, s: &str) -> bool
pub fn set_pos(&mut self, s: &str) -> bool
Set Attribute::Pos
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_pos(&mut self) -> bool
pub fn unset_pos(&mut self) -> bool
Unset Attribute::Pos
attribute. Returns whether the attribute was set.
Sourcepub fn set_rects(&mut self, s: &str) -> bool
pub fn set_rects(&mut self, s: &str) -> bool
Set Attribute::Rects
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_rects(&mut self) -> bool
pub fn unset_rects(&mut self) -> bool
Unset Attribute::Rects
attribute. Returns whether the attribute was set.
Sourcepub fn set_regular(&mut self, s: &str) -> bool
pub fn set_regular(&mut self, s: &str) -> bool
Set Attribute::Regular
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_regular(&mut self) -> bool
pub fn unset_regular(&mut self) -> bool
Unset Attribute::Regular
attribute. Returns whether the attribute was set.
Sourcepub fn set_root(&mut self, s: &str) -> bool
pub fn set_root(&mut self, s: &str) -> bool
Set Attribute::Root
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_root(&mut self) -> bool
pub fn unset_root(&mut self) -> bool
Unset Attribute::Root
attribute. Returns whether the attribute was set.
Sourcepub fn set_samplepoints(&mut self, s: &str) -> bool
pub fn set_samplepoints(&mut self, s: &str) -> bool
Set Attribute::Samplepoints
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_samplepoints(&mut self) -> bool
pub fn unset_samplepoints(&mut self) -> bool
Unset Attribute::Samplepoints
attribute. Returns whether the attribute was set.
Sourcepub fn set_shape(&mut self, s: &str) -> bool
pub fn set_shape(&mut self, s: &str) -> bool
Set Attribute::Shape
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_shape(&mut self) -> bool
pub fn unset_shape(&mut self) -> bool
Unset Attribute::Shape
attribute. Returns whether the attribute was set.
Sourcepub fn set_shapefile(&mut self, s: &str) -> bool
pub fn set_shapefile(&mut self, s: &str) -> bool
Set Attribute::Shapefile
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_shapefile(&mut self) -> bool
pub fn unset_shapefile(&mut self) -> bool
Unset Attribute::Shapefile
attribute. Returns whether the attribute was set.
Sourcepub fn set_showboxes(&mut self, s: &str) -> bool
pub fn set_showboxes(&mut self, s: &str) -> bool
Set Attribute::Showboxes
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_showboxes(&mut self) -> bool
pub fn unset_showboxes(&mut self) -> bool
Unset Attribute::Showboxes
attribute. Returns whether the attribute was set.
Sourcepub fn set_sides(&mut self, s: &str) -> bool
pub fn set_sides(&mut self, s: &str) -> bool
Set Attribute::Sides
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_sides(&mut self) -> bool
pub fn unset_sides(&mut self) -> bool
Unset Attribute::Sides
attribute. Returns whether the attribute was set.
Sourcepub fn set_skew(&mut self, s: &str) -> bool
pub fn set_skew(&mut self, s: &str) -> bool
Set Attribute::Skew
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_skew(&mut self) -> bool
pub fn unset_skew(&mut self) -> bool
Unset Attribute::Skew
attribute. Returns whether the attribute was set.
Sourcepub fn set_sortv(&mut self, s: &str) -> bool
pub fn set_sortv(&mut self, s: &str) -> bool
Set Attribute::Sortv
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_sortv(&mut self) -> bool
pub fn unset_sortv(&mut self) -> bool
Unset Attribute::Sortv
attribute. Returns whether the attribute was set.
Sourcepub fn set_style(&mut self, s: &str) -> bool
pub fn set_style(&mut self, s: &str) -> bool
Set Attribute::Style
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_style(&mut self) -> bool
pub fn unset_style(&mut self) -> bool
Unset Attribute::Style
attribute. Returns whether the attribute was set.
Sourcepub fn set_target(&mut self, s: &str) -> bool
pub fn set_target(&mut self, s: &str) -> bool
Set Attribute::Target
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_target(&mut self) -> bool
pub fn unset_target(&mut self) -> bool
Unset Attribute::Target
attribute. Returns whether the attribute was set.
Sourcepub fn set_tooltip(&mut self, s: &str) -> bool
pub fn set_tooltip(&mut self, s: &str) -> bool
Set Attribute::Tooltip
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_tooltip(&mut self) -> bool
pub fn unset_tooltip(&mut self) -> bool
Unset Attribute::Tooltip
attribute. Returns whether the attribute was set.
Sourcepub fn set_url(&mut self, s: &str) -> bool
pub fn set_url(&mut self, s: &str) -> bool
Set Attribute::Url
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_url(&mut self) -> bool
pub fn unset_url(&mut self) -> bool
Unset Attribute::Url
attribute. Returns whether the attribute was set.
Sourcepub fn set_vertices(&mut self, s: &str) -> bool
pub fn set_vertices(&mut self, s: &str) -> bool
Set Attribute::Vertices
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_vertices(&mut self) -> bool
pub fn unset_vertices(&mut self) -> bool
Unset Attribute::Vertices
attribute. Returns whether the attribute was set.
Sourcepub fn set_width(&mut self, s: &str) -> bool
pub fn set_width(&mut self, s: &str) -> bool
Set Attribute::Width
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_width(&mut self) -> bool
pub fn unset_width(&mut self) -> bool
Unset Attribute::Width
attribute. Returns whether the attribute was set.
Sourcepub fn set_xlabel(&mut self, s: &str) -> bool
pub fn set_xlabel(&mut self, s: &str) -> bool
Set Attribute::Xlabel
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_xlabel(&mut self) -> bool
pub fn unset_xlabel(&mut self) -> bool
Unset Attribute::Xlabel
attribute. Returns whether the attribute was set.
Sourcepub fn set_xlp(&mut self, s: &str) -> bool
pub fn set_xlp(&mut self, s: &str) -> bool
Set Attribute::Xlp
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_xlp(&mut self) -> bool
pub fn unset_xlp(&mut self) -> bool
Unset Attribute::Xlp
attribute. Returns whether the attribute was set.
Sourcepub fn set_z(&mut self, s: &str) -> bool
pub fn set_z(&mut self, s: &str) -> bool
Set Attribute::Z
attribute. Returns whether the attribute was newly set.
Sourcepub fn unset_z(&mut self) -> bool
pub fn unset_z(&mut self) -> bool
Unset Attribute::Z
attribute. Returns whether the attribute was set.
Trait Implementations§
Source§impl Clone for VertexAttributes
impl Clone for VertexAttributes
Source§fn clone(&self) -> VertexAttributes
fn clone(&self) -> VertexAttributes
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VertexAttributes
impl Debug for VertexAttributes
Source§impl Default for VertexAttributes
impl Default for VertexAttributes
Source§fn default() -> VertexAttributes
fn default() -> VertexAttributes
Source§impl<'a> Extend<Pair<'a, Rule>> for VertexAttributes
impl<'a> Extend<Pair<'a, Rule>> for VertexAttributes
Source§fn extend<T: IntoIterator<Item = Pair<'a, Rule>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Pair<'a, Rule>>>(&mut self, iter: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl From<VertexAttributes> for String
impl From<VertexAttributes> for String
Source§fn from(attributes: VertexAttributes) -> Self
fn from(attributes: VertexAttributes) -> Self
Auto Trait Implementations§
impl Freeze for VertexAttributes
impl RefUnwindSafe for VertexAttributes
impl Send for VertexAttributes
impl Sync for VertexAttributes
impl Unpin for VertexAttributes
impl UnwindSafe for VertexAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable 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>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.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>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.