[−][src]Struct indented_blocks::Block
Fields
head: Ssubs: Vec<Block<S>>Implementations
impl<A> Block<A>[src]
pub fn map_ref<B, F>(&self, f: F) -> Block<B> where
F: FnMut(&A) -> B, [src]
F: FnMut(&A) -> B,
pub fn map<B, F>(self, f: F) -> Block<B> where
F: FnMut(A) -> B, [src]
F: FnMut(A) -> B,
impl<'a, T> Block<&'a T> where
T: ToOwned, [src]
T: ToOwned,
impl<A: Display> Block<A>[src]
pub fn append_to_string(
&self,
ret: &mut String,
single_indent: &str,
upper_indent: &str
)[src]
&self,
ret: &mut String,
single_indent: &str,
upper_indent: &str
)
pub fn to_string(&self, single_indent: &str) -> String[src]
Trait Implementations
impl<S: Clone> Clone for Block<S>[src]
fn clone(&self) -> Block<S>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<S: Debug> Debug for Block<S>[src]
impl<T: Unindent> Unindent for Block<T>[src]
Auto Trait Implementations
impl<S> Send for Block<S> where
S: Send,
S: Send,
impl<S> Sync for Block<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Block<S> where
S: Unpin,
S: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,