Struct ClusterAttributes

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

Cluster attributes.

Implementations§

Source§

impl ClusterAttributes

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_bgcolor(&mut self, s: &str) -> bool

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

Source

pub fn unset_bgcolor(&mut self) -> bool

Unset Attribute::Bgcolor 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_cluster(&mut self, s: &str) -> bool

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

Source

pub fn unset_cluster(&mut self) -> bool

Unset Attribute::Cluster 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_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_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_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_k(&mut self, s: &str) -> bool

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

Source

pub fn unset_k(&mut self) -> bool

Unset Attribute::K 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_labeljust(&mut self, s: &str) -> bool

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

Source

pub fn unset_labeljust(&mut self) -> bool

Unset Attribute::Labeljust 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_lheight(&mut self, s: &str) -> bool

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

Source

pub fn unset_lheight(&mut self) -> bool

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

Source

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

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

Source

pub fn unset_lp(&mut self) -> bool

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

Source

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

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

Source

pub fn unset_lwidth(&mut self) -> bool

Unset Attribute::Lwidth 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_pencolor(&mut self, s: &str) -> bool

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

Source

pub fn unset_pencolor(&mut self) -> bool

Unset Attribute::Pencolor 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_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.

Trait Implementations§

Source§

impl Clone for ClusterAttributes

Source§

fn clone(&self) -> ClusterAttributes

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 ClusterAttributes

Source§

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

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

impl Default for ClusterAttributes

Source§

fn default() -> ClusterAttributes

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

impl IntoIterator for ClusterAttributes

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