Struct style::properties::BuilderArc
[−]
[src]
#[repr(C)]pub struct BuilderArc<T> where
T: 'static + ?Sized, { /* fields omitted */ }
Methods
impl<T> Arc<T>
[src]
pub fn new(data: T) -> Arc<T>
[src]
pub fn into_raw(this: Arc<T>) -> *const T
[src]
pub fn borrow_arc(&'a self) -> ArcBorrow<'a, T>
[src]
Produce a pointer to the data that can be converted back to an arc
pub fn with_raw_offset_arc<F, U>(&self, f: F) -> U where
F: FnOnce(&RawOffsetArc<T>) -> U,
[src]
F: FnOnce(&RawOffsetArc<T>) -> U,
Temporarily converts |self| into a bonafide RawOffsetArc and exposes it to the provided callback. The refcount is not modified.
pub fn heap_ptr(&self) -> *const c_void
[src]
Returns the address on the heap of the Arc itself -- not the T within it -- for memory reporting.
impl<T> Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Arc<T> where
T: Clone,
[src]
T: Clone,
impl<T> Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
impl<H, T> Arc<HeaderSlice<H, [T]>>
[src]
pub fn from_header_and_iter<I>(header: H, items: I) -> Arc<HeaderSlice<H, [T]>> where
I: Iterator<Item = T> + ExactSizeIterator,
[src]
I: Iterator<Item = T> + ExactSizeIterator,
Creates an Arc for a HeaderSlice using the given header struct and iterator to generate the slice. The resulting Arc will be fat.
impl<H, T> Arc<HeaderSlice<HeaderWithLength<H>, [T]>> where
H: 'static,
T: 'static,
[src]
H: 'static,
T: 'static,
pub fn into_thin(a: Arc<HeaderSlice<HeaderWithLength<H>, [T]>>) -> ThinArc<H, T>
[src]
Converts an Arc into a ThinArc. This consumes the Arc, so the refcount is not modified.
pub fn from_thin(a: ThinArc<H, T>) -> Arc<HeaderSlice<HeaderWithLength<H>, [T]>>
[src]
Converts a ThinArc into an Arc. This consumes the ThinArc, so the refcount is not modified.
impl<T> Arc<T> where
T: 'static,
[src]
T: 'static,
pub fn into_raw_offset(a: Arc<T>) -> RawOffsetArc<T>
[src]
Converts an Arc into a RawOffsetArc. This consumes the Arc, so the refcount is not modified.
pub fn from_raw_offset(a: RawOffsetArc<T>) -> Arc<T>
[src]
Converts a RawOffsetArc into an Arc. This consumes the RawOffsetArc, so the refcount is not modified.
Trait Implementations
impl<T> ToCss for Arc<T> where
T: ToCss + ?Sized,
[src]
T: ToCss + ?Sized,
fn to_css<W>(&self, dest: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
Serialize self
in CSS syntax, writing to dest
.
fn to_css_string(&self) -> String
[src]
Serialize self
in CSS syntax and return a string. Read more
impl<T> Default for Arc<T> where
T: Default,
[src]
T: Default,
impl<T> Drop for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Send for Arc<T> where
T: Send + Sync + ?Sized,
[src]
T: Send + Sync + ?Sized,
impl<T> PartialOrd<Arc<T>> for Arc<T> where
T: PartialOrd<T> + ?Sized,
[src]
T: PartialOrd<T> + ?Sized,
fn partial_cmp(&self, other: &Arc<T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Arc<T>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Arc<T>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Arc<T>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Arc<T>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T> PartialEq<Arc<T>> for Arc<T> where
T: PartialEq<T> + ?Sized,
[src]
T: PartialEq<T> + ?Sized,
fn eq(&self, other: &Arc<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Arc<T>) -> bool
[src]
This method tests for !=
.
impl<T> Ord for Arc<T> where
T: Ord + ?Sized,
[src]
T: Ord + ?Sized,
fn cmp(&self, other: &Arc<T>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<T> StableDeref for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
impl<T> CloneStableDeref for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Debug for Arc<T> where
T: Debug + ?Sized,
[src]
T: Debug + ?Sized,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T> Eq for Arc<T> where
T: Eq + ?Sized,
[src]
T: Eq + ?Sized,
impl<T> Hash for Arc<T> where
T: Hash + ?Sized,
[src]
T: Hash + ?Sized,
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> Pointer for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
impl<T> From<T> for Arc<T>
[src]
impl<T> AsRef<T> for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Borrow<T> for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'a mut Wfn borrow(&self) -> &T
[src]
Immutably borrows from an owned value. Read more
impl<T> Display for Arc<T> where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T> Sync for Arc<T> where
T: Send + Sync + ?Sized,
[src]
T: Send + Sync + ?Sized,
impl<T> Clone for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
fn clone(&self) -> Arc<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> Deref for Arc<T> where
T: ?Sized,
[src]
T: ?Sized,
type Target = T
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Wfn deref(&self) -> &T
[src]
Dereferences the value.
impl<T> MallocUnconditionalShallowSizeOf for Arc<T>
[src]
fn unconditional_shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
impl<T> MallocConditionalSizeOf for Arc<T> where
T: MallocSizeOf,
[src]
T: MallocSizeOf,
fn conditional_size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
impl<T> MallocConditionalShallowSizeOf for Arc<T>
[src]
fn conditional_shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
impl<T> MallocUnconditionalSizeOf for Arc<T> where
T: MallocSizeOf,
[src]
T: MallocSizeOf,