Struct forest_actor::CALLER_TYPES_SIGNABLE [−][src]
pub struct CALLER_TYPES_SIGNABLE { /* fields omitted */ }
Expand description
Set of actor code types that can represent external signing parties.
Methods from Deref<Target = [Cid; 2]>
pub fn as_slice(&self) -> &[T]ⓘ
[src]
🔬 This is a nightly-only experimental API. (array_methods
)
pub fn as_slice(&self) -> &[T]ⓘ
[src]🔬 This is a nightly-only experimental API. (
array_methods
)Returns a slice containing the entire array. Equivalent to &s[..]
.
pub fn each_ref(&self) -> [&T; N]
[src]
🔬 This is a nightly-only experimental API. (array_methods
)
pub fn each_ref(&self) -> [&T; N]
[src]🔬 This is a nightly-only experimental API. (
array_methods
)Borrows each element and returns an array of references with the same
size as self
.
Example
#![feature(array_methods)] let floats = [3.1, 2.7, -1.0]; let float_refs: [&f64; 3] = floats.each_ref(); assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
This method is particularly useful if combined with other methods, like
map
. This way, you can avoid moving the original
array if its elements are not Copy
.
#![feature(array_methods, array_map)] let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()]; let is_ascii = strings.each_ref().map(|s| s.is_ascii()); assert_eq!(is_ascii, [true, false, true]); // We can still access the original array: it has not been moved. assert_eq!(strings.len(), 3);
Trait Implementations
impl Deref for CALLER_TYPES_SIGNABLE
[src]
impl Deref for CALLER_TYPES_SIGNABLE
[src]impl LazyStatic for CALLER_TYPES_SIGNABLE
[src]
impl LazyStatic for CALLER_TYPES_SIGNABLE
[src]fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for CALLER_TYPES_SIGNABLE
impl Send for CALLER_TYPES_SIGNABLE
impl Sync for CALLER_TYPES_SIGNABLE
impl Unpin for CALLER_TYPES_SIGNABLE
impl UnwindSafe for CALLER_TYPES_SIGNABLE
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,