Struct protobuf_native::FileDescriptorSet
source · pub struct FileDescriptorSet { /* private fields */ }
Expand description
The protocol compiler can output a file descriptor set containing the .proto files it parses.
Implementations§
source§impl FileDescriptorSet
impl FileDescriptorSet
sourcepub fn file_size(&self) -> usize
pub fn file_size(&self) -> usize
Returns the number of file descriptors in the file descriptor set.
sourcepub fn clear_file(self: Pin<&mut Self>)
pub fn clear_file(self: Pin<&mut Self>)
Clears the file descriptors.
sourcepub fn file(&self, i: usize) -> &FileDescriptorProto
pub fn file(&self, i: usize) -> &FileDescriptorProto
Returns a reference the i
th file descriptor.
Trait Implementations§
source§impl Drop for FileDescriptorSet
impl Drop for FileDescriptorSet
source§impl MessageLite for FileDescriptorSet
impl MessageLite for FileDescriptorSet
source§fn clear(self: Pin<&mut Self>)
fn clear(self: Pin<&mut Self>)
Clears all fields of the message and set them to their default values. Read more
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Quickly checks if all required fields have been set.
source§fn merge_from_coded_stream(
self: Pin<&mut Self>,
input: Pin<&mut CodedInputStream<'_>>,
) -> Result<(), OperationFailedError>
fn merge_from_coded_stream( self: Pin<&mut Self>, input: Pin<&mut CodedInputStream<'_>>, ) -> Result<(), OperationFailedError>
Reads a protocol buffer from the stream and merges it into this message. Read more
source§fn serialize_to_coded_stream(
&self,
output: Pin<&mut CodedOutputStream<'_>>,
) -> Result<(), OperationFailedError>
fn serialize_to_coded_stream( &self, output: Pin<&mut CodedOutputStream<'_>>, ) -> Result<(), OperationFailedError>
Writes a protocol buffer of this message to the given output. Read more
source§fn serialize_to_zero_copy_stream(
&self,
output: Pin<&mut dyn ZeroCopyOutputStream>,
) -> Result<(), OperationFailedError>
fn serialize_to_zero_copy_stream( &self, output: Pin<&mut dyn ZeroCopyOutputStream>, ) -> Result<(), OperationFailedError>
Writes the message to the given zero-copy output stream. Read more
source§fn serialize_to_writer(
&self,
output: &mut dyn Write,
) -> Result<(), OperationFailedError>
fn serialize_to_writer( &self, output: &mut dyn Write, ) -> Result<(), OperationFailedError>
impl Message for FileDescriptorSet
Auto Trait Implementations§
impl Freeze for FileDescriptorSet
impl RefUnwindSafe for FileDescriptorSet
impl Send for FileDescriptorSet
impl Sync for FileDescriptorSet
impl !Unpin for FileDescriptorSet
impl UnwindSafe for FileDescriptorSet
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