Struct VertexAttributes

Source
pub struct VertexAttributes { /* private fields */ }
Expand description

Vertex attributes.

Implementations§

Source§

impl VertexAttributes

Source

pub fn insert_raw_parts(&mut self, key: &str, value: &str) -> bool

Set attribute from key and value raw parts. Returns whether the attribute was newly set.

§Panics

Key is not valid for this attributes set. Read more.

Source

pub fn len(&self) -> usize

Get attributes length.

Source

pub fn is_empty(&self) -> bool

Check if attributes is empty.

Source

pub fn set_area(&mut self, s: &str) -> bool

Set Attribute::Area attribute. Returns whether the attribute was newly set.

Source

pub fn unset_area(&mut self) -> bool

Unset Attribute::Area attribute. Returns whether the attribute was set.

Source

pub fn set_class(&mut self, s: &str) -> bool

Set Attribute::Class attribute. Returns whether the attribute was newly set.

Source

pub fn unset_class(&mut self) -> bool

Unset Attribute::Class attribute. Returns whether the attribute was set.

Source

pub fn set_color(&mut self, s: &str) -> bool

Set Attribute::Color attribute. Returns whether the attribute was newly set.

Source

pub fn unset_color(&mut self) -> bool

Unset Attribute::Color attribute. Returns whether the attribute was set.

Source

pub fn set_colorscheme(&mut self, s: &str) -> bool

Set Attribute::Colorscheme attribute. Returns whether the attribute was newly set.

Source

pub fn unset_colorscheme(&mut self) -> bool

Unset Attribute::Colorscheme attribute. Returns whether the attribute was set.

Source

pub fn set_comment(&mut self, s: &str) -> bool

Set Attribute::Comment attribute. Returns whether the attribute was newly set.

Source

pub fn unset_comment(&mut self) -> bool

Unset Attribute::Comment attribute. Returns whether the attribute was set.

Source

pub fn set_distortion(&mut self, s: &str) -> bool

Set Attribute::Distortion attribute. Returns whether the attribute was newly set.

Source

pub fn unset_distortion(&mut self) -> bool

Unset Attribute::Distortion attribute. Returns whether the attribute was set.

Source

pub fn set_fillcolor(&mut self, s: &str) -> bool

Set Attribute::Fillcolor attribute. Returns whether the attribute was newly set.

Source

pub fn unset_fillcolor(&mut self) -> bool

Unset Attribute::Fillcolor attribute. Returns whether the attribute was set.

Source

pub fn set_fixedsize(&mut self, s: &str) -> bool

Set Attribute::Fixedsize attribute. Returns whether the attribute was newly set.

Source

pub fn unset_fixedsize(&mut self) -> bool

Unset Attribute::Fixedsize attribute. Returns whether the attribute was set.

Source

pub fn set_fontcolor(&mut self, s: &str) -> bool

Set Attribute::Fontcolor attribute. Returns whether the attribute was newly set.

Source

pub fn unset_fontcolor(&mut self) -> bool

Unset Attribute::Fontcolor attribute. Returns whether the attribute was set.

Source

pub fn set_fontname(&mut self, s: &str) -> bool

Set Attribute::Fontname attribute. Returns whether the attribute was newly set.

Source

pub fn unset_fontname(&mut self) -> bool

Unset Attribute::Fontname attribute. Returns whether the attribute was set.

Source

pub fn set_fontsize(&mut self, s: &str) -> bool

Set Attribute::Fontsize attribute. Returns whether the attribute was newly set.

Source

pub fn unset_fontsize(&mut self) -> bool

Unset Attribute::Fontsize attribute. Returns whether the attribute was set.

Source

pub fn set_gradientangle(&mut self, s: &str) -> bool

Set Attribute::Gradientangle attribute. Returns whether the attribute was newly set.

Source

pub fn unset_gradientangle(&mut self) -> bool

Unset Attribute::Gradientangle attribute. Returns whether the attribute was set.

Source

pub fn set_group(&mut self, s: &str) -> bool

Set Attribute::Group attribute. Returns whether the attribute was newly set.

Source

pub fn unset_group(&mut self) -> bool

Unset Attribute::Group attribute. Returns whether the attribute was set.

Source

pub fn set_height(&mut self, s: &str) -> bool

Set Attribute::Height attribute. Returns whether the attribute was newly set.

Source

pub fn unset_height(&mut self) -> bool

Unset Attribute::Height attribute. Returns whether the attribute was set.

Source

pub fn set_href(&mut self, s: &str) -> bool

Set Attribute::Href attribute. Returns whether the attribute was newly set.

Source

pub fn unset_href(&mut self) -> bool

Unset Attribute::Href attribute. Returns whether the attribute was set.

Source

pub fn set_id(&mut self, s: &str) -> bool

Set Attribute::Id attribute. Returns whether the attribute was newly set.

Source

pub fn unset_id(&mut self) -> bool

Unset Attribute::Id attribute. Returns whether the attribute was set.

Source

pub fn set_image(&mut self, s: &str) -> bool

Set Attribute::Image attribute. Returns whether the attribute was newly set.

Source

pub fn unset_image(&mut self) -> bool

Unset Attribute::Image attribute. Returns whether the attribute was set.

Source

pub fn set_imagepos(&mut self, s: &str) -> bool

Set Attribute::Imagepos attribute. Returns whether the attribute was newly set.

Source

pub fn unset_imagepos(&mut self) -> bool

Unset Attribute::Imagepos attribute. Returns whether the attribute was set.

Source

pub fn set_imagescale(&mut self, s: &str) -> bool

Set Attribute::Imagescale attribute. Returns whether the attribute was newly set.

Source

pub fn unset_imagescale(&mut self) -> bool

Unset Attribute::Imagescale attribute. Returns whether the attribute was set.

Source

pub fn set_label(&mut self, s: &str) -> bool

Set Attribute::Label attribute. Returns whether the attribute was newly set.

Source

pub fn unset_label(&mut self) -> bool

Unset Attribute::Label attribute. Returns whether the attribute was set.

Source

pub fn set_labelloc(&mut self, s: &str) -> bool

Set Attribute::Labelloc attribute. Returns whether the attribute was newly set.

Source

pub fn unset_labelloc(&mut self) -> bool

Unset Attribute::Labelloc attribute. Returns whether the attribute was set.

Source

pub fn set_layer(&mut self, s: &str) -> bool

Set Attribute::Layer attribute. Returns whether the attribute was newly set.

Source

pub fn unset_layer(&mut self) -> bool

Unset Attribute::Layer attribute. Returns whether the attribute was set.

Source

pub fn set_margin(&mut self, s: &str) -> bool

Set Attribute::Margin attribute. Returns whether the attribute was newly set.

Source

pub fn unset_margin(&mut self) -> bool

Unset Attribute::Margin attribute. Returns whether the attribute was set.

Source

pub fn set_nojustify(&mut self, s: &str) -> bool

Set Attribute::Nojustify attribute. Returns whether the attribute was newly set.

Source

pub fn unset_nojustify(&mut self) -> bool

Unset Attribute::Nojustify attribute. Returns whether the attribute was set.

Source

pub fn set_ordering(&mut self, s: &str) -> bool

Set Attribute::Ordering attribute. Returns whether the attribute was newly set.

Source

pub fn unset_ordering(&mut self) -> bool

Unset Attribute::Ordering attribute. Returns whether the attribute was set.

Source

pub fn set_orientation(&mut self, s: &str) -> bool

Set Attribute::Orientation attribute. Returns whether the attribute was newly set.

Source

pub fn unset_orientation(&mut self) -> bool

Unset Attribute::Orientation attribute. Returns whether the attribute was set.

Source

pub fn set_penwidth(&mut self, s: &str) -> bool

Set Attribute::Penwidth attribute. Returns whether the attribute was newly set.

Source

pub fn unset_penwidth(&mut self) -> bool

Unset Attribute::Penwidth attribute. Returns whether the attribute was set.

Source

pub fn set_peripheries(&mut self, s: &str) -> bool

Set Attribute::Peripheries attribute. Returns whether the attribute was newly set.

Source

pub fn unset_peripheries(&mut self) -> bool

Unset Attribute::Peripheries attribute. Returns whether the attribute was set.

Source

pub fn set_pin(&mut self, s: &str) -> bool

Set Attribute::Pin attribute. Returns whether the attribute was newly set.

Source

pub fn unset_pin(&mut self) -> bool

Unset Attribute::Pin attribute. Returns whether the attribute was set.

Source

pub fn set_pos(&mut self, s: &str) -> bool

Set Attribute::Pos attribute. Returns whether the attribute was newly set.

Source

pub fn unset_pos(&mut self) -> bool

Unset Attribute::Pos attribute. Returns whether the attribute was set.

Source

pub fn set_rects(&mut self, s: &str) -> bool

Set Attribute::Rects attribute. Returns whether the attribute was newly set.

Source

pub fn unset_rects(&mut self) -> bool

Unset Attribute::Rects attribute. Returns whether the attribute was set.

Source

pub fn set_regular(&mut self, s: &str) -> bool

Set Attribute::Regular attribute. Returns whether the attribute was newly set.

Source

pub fn unset_regular(&mut self) -> bool

Unset Attribute::Regular attribute. Returns whether the attribute was set.

Source

pub fn set_root(&mut self, s: &str) -> bool

Set Attribute::Root attribute. Returns whether the attribute was newly set.

Source

pub fn unset_root(&mut self) -> bool

Unset Attribute::Root attribute. Returns whether the attribute was set.

Source

pub fn set_samplepoints(&mut self, s: &str) -> bool

Set Attribute::Samplepoints attribute. Returns whether the attribute was newly set.

Source

pub fn unset_samplepoints(&mut self) -> bool

Unset Attribute::Samplepoints attribute. Returns whether the attribute was set.

Source

pub fn set_shape(&mut self, s: &str) -> bool

Set Attribute::Shape attribute. Returns whether the attribute was newly set.

Source

pub fn unset_shape(&mut self) -> bool

Unset Attribute::Shape attribute. Returns whether the attribute was set.

Source

pub fn set_shapefile(&mut self, s: &str) -> bool

Set Attribute::Shapefile attribute. Returns whether the attribute was newly set.

Source

pub fn unset_shapefile(&mut self) -> bool

Unset Attribute::Shapefile attribute. Returns whether the attribute was set.

Source

pub fn set_showboxes(&mut self, s: &str) -> bool

Set Attribute::Showboxes attribute. Returns whether the attribute was newly set.

Source

pub fn unset_showboxes(&mut self) -> bool

Unset Attribute::Showboxes attribute. Returns whether the attribute was set.

Source

pub fn set_sides(&mut self, s: &str) -> bool

Set Attribute::Sides attribute. Returns whether the attribute was newly set.

Source

pub fn unset_sides(&mut self) -> bool

Unset Attribute::Sides attribute. Returns whether the attribute was set.

Source

pub fn set_skew(&mut self, s: &str) -> bool

Set Attribute::Skew attribute. Returns whether the attribute was newly set.

Source

pub fn unset_skew(&mut self) -> bool

Unset Attribute::Skew attribute. Returns whether the attribute was set.

Source

pub fn set_sortv(&mut self, s: &str) -> bool

Set Attribute::Sortv attribute. Returns whether the attribute was newly set.

Source

pub fn unset_sortv(&mut self) -> bool

Unset Attribute::Sortv attribute. Returns whether the attribute was set.

Source

pub fn set_style(&mut self, s: &str) -> bool

Set Attribute::Style attribute. Returns whether the attribute was newly set.

Source

pub fn unset_style(&mut self) -> bool

Unset Attribute::Style attribute. Returns whether the attribute was set.

Source

pub fn set_target(&mut self, s: &str) -> bool

Set Attribute::Target attribute. Returns whether the attribute was newly set.

Source

pub fn unset_target(&mut self) -> bool

Unset Attribute::Target attribute. Returns whether the attribute was set.

Source

pub fn set_tooltip(&mut self, s: &str) -> bool

Set Attribute::Tooltip attribute. Returns whether the attribute was newly set.

Source

pub fn unset_tooltip(&mut self) -> bool

Unset Attribute::Tooltip attribute. Returns whether the attribute was set.

Source

pub fn set_url(&mut self, s: &str) -> bool

Set Attribute::Url attribute. Returns whether the attribute was newly set.

Source

pub fn unset_url(&mut self) -> bool

Unset Attribute::Url attribute. Returns whether the attribute was set.

Source

pub fn set_vertices(&mut self, s: &str) -> bool

Set Attribute::Vertices attribute. Returns whether the attribute was newly set.

Source

pub fn unset_vertices(&mut self) -> bool

Unset Attribute::Vertices attribute. Returns whether the attribute was set.

Source

pub fn set_width(&mut self, s: &str) -> bool

Set Attribute::Width attribute. Returns whether the attribute was newly set.

Source

pub fn unset_width(&mut self) -> bool

Unset Attribute::Width attribute. Returns whether the attribute was set.

Source

pub fn set_xlabel(&mut self, s: &str) -> bool

Set Attribute::Xlabel attribute. Returns whether the attribute was newly set.

Source

pub fn unset_xlabel(&mut self) -> bool

Unset Attribute::Xlabel attribute. Returns whether the attribute was set.

Source

pub fn set_xlp(&mut self, s: &str) -> bool

Set Attribute::Xlp attribute. Returns whether the attribute was newly set.

Source

pub fn unset_xlp(&mut self) -> bool

Unset Attribute::Xlp attribute. Returns whether the attribute was set.

Source

pub fn set_z(&mut self, s: &str) -> bool

Set Attribute::Z attribute. Returns whether the attribute was newly set.

Source

pub fn unset_z(&mut self) -> bool

Unset Attribute::Z attribute. Returns whether the attribute was set.

Trait Implementations§

Source§

impl Clone for VertexAttributes

Source§

fn clone(&self) -> VertexAttributes

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VertexAttributes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VertexAttributes

Source§

fn default() -> VertexAttributes

Returns the “default value” for a type. Read more
Source§

impl<'a> Extend<Pair<'a, Rule>> for VertexAttributes

Source§

fn extend<T: IntoIterator<Item = Pair<'a, Rule>>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<'a> From<Pair<'a, Rule>> for VertexAttributes

Source§

fn from(pair: Pair<'a, Rule>) -> Self

Converts to this type from the input type.
Source§

impl From<VertexAttributes> for String

Source§

fn from(attributes: VertexAttributes) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for VertexAttributes

Source§

type Item = Attribute

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<Attribute>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

unsafe 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

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V