Struct mesh_protobuf::protofile::DescriptorWriter
source · pub struct DescriptorWriter<'a> { /* private fields */ }
Expand description
A type used to write protobuf descriptors to .proto
-format files.
Implementations§
source§impl<'a> DescriptorWriter<'a>
impl<'a> DescriptorWriter<'a>
sourcepub fn new(
descriptors: impl IntoIterator<Item = &'a MessageDescription<'a>>,
) -> Self
pub fn new( descriptors: impl IntoIterator<Item = &'a MessageDescription<'a>>, ) -> Self
Returns a new object for writing the .proto
files described by
descriptors
.
descriptors
only needs to contain the roots of the protobuf
message graph; any other message types referred to by the types in
descriptors
will be found and written to .proto
files as well.
sourcepub fn file_heading(&mut self, file_heading: &'a str) -> &mut Self
pub fn file_heading(&mut self, file_heading: &'a str) -> &mut Self
Sets the file heading written to each file.
Auto Trait Implementations§
impl<'a> Freeze for DescriptorWriter<'a>
impl<'a> RefUnwindSafe for DescriptorWriter<'a>
impl<'a> Send for DescriptorWriter<'a>
impl<'a> Sync for DescriptorWriter<'a>
impl<'a> Unpin for DescriptorWriter<'a>
impl<'a> UnwindSafe for DescriptorWriter<'a>
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