Struct grpc_build::tree::Tree
source · pub struct Tree(/* private fields */);
Implementations§
source§impl Tree
impl Tree
sourcepub fn insert_path(&mut self, path: PathBuf)
pub fn insert_path(&mut self, path: PathBuf)
Given a file path that is .
separated, it loads it into the tree.
sourcepub fn generate_module(&self) -> String
pub fn generate_module(&self) -> String
Generates the module at the root level of the tree
Trait Implementations§
source§impl Extend<PathBuf> for Tree
impl Extend<PathBuf> for Tree
source§fn extend<T: IntoIterator<Item = PathBuf>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = PathBuf>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
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)
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 FromIterator<PathBuf> for Tree
impl FromIterator<PathBuf> for Tree
source§impl PartialEq for Tree
impl PartialEq for Tree
impl StructuralPartialEq for Tree
Auto Trait Implementations§
impl Freeze for Tree
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnwindSafe for Tree
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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