pub fn save(&self) -> CoreProto {
        let mut cover_proto = CoreProto::new();
        cover_proto.set_scale_base(self.parameters.scale_base);
        cover_proto.set_cutoff(self.parameters.cutoff as u64);
        cover_proto.set_resolution(self.parameters.resolution);
        cover_proto.set_use_singletons(self.parameters.use_singletons);
        cover_proto.set_dim(self.parameters.point_cloud.dim() as u64);
        cover_proto.set_count(self.parameters.point_cloud.len() as u64);
        cover_proto.set_root_scale(self.root_address.0);
        cover_proto.set_root_index(self.root_address.1);
        cover_proto.set_layers(self.layers.iter().map(|l| l.save()).collect());
        cover_proto
    }
/// Encodes the tree into a protobuf. See `utils::save_tree` for saving to a file on disk.
Encodes the tree into a protobuf. See `utils::save_tree` for saving to a file on disk.
Encodes the tree into a protobuf . See ` utils :: save_tree ` for saving to a file on disk .
pub fn save(&self) -> CoreProto {
        let mut cover_proto = CoreProto::new();
        cover_proto.set_scale_base(self.parameters.scale_base);
        cover_proto.set_cutoff(self.parameters.cutoff as u64);
        cover_proto.set_resolution(self.parameters.resolution);
        cover_proto.set_use_singletons(self.parameters.use_singletons);
        cover_proto.set_dim(self.parameters.point_cloud.dim() as u64);
        cover_proto.set_count(self.parameters.point_cloud.len() as u64);
        cover_proto.set_root_scale(self.root_address.0);
        cover_proto.set_root_index(self.root_address.1);
        cover_proto.set_layers(self.layers.iter().map(|l| l.save()).collect());
        cover_proto
    }
pub fn save ( & self ) -> CoreProto { let mut cover_proto = CoreProto :: new ( ) ; cover_proto . set_scale_base ( self . parameters . scale_base ) ; cover_proto . set_cutoff ( self . parameters . cutoff as u64 ) ; cover_proto . set_resolution ( self . parameters . resolution ) ; cover_proto . set_use_singletons ( self . parameters . use_singletons ) ; cover_proto . set_dim ( self . parameters . point_cloud . dim ( ) as u64 ) ; cover_proto . set_count ( self . parameters . point_cloud . len ( ) as u64 ) ; cover_proto . set_root_scale ( self . root_address . 0 ) ; cover_proto . set_root_index ( self . root_address . 1 ) ; cover_proto . set_layers ( self . layers . iter ( ) . map ( | l | l . save ( ) ) . collect ( ) ) ; cover_proto }
Encodes the tree into a protobuf.
Encodes the tree into a protobuf .
&self
&self