Struct lindera_core::connection::ConnectionCostMatrix
source · pub struct ConnectionCostMatrix {
pub costs_data: Cow<'static, [u8]>,
pub backward_size: u32,
}
Fields§
§costs_data: Cow<'static, [u8]>
§backward_size: u32
Implementations§
source§impl ConnectionCostMatrix
impl ConnectionCostMatrix
pub fn load_static(conn_data: &'static [u8]) -> ConnectionCostMatrix
pub fn load(conn_data: &[u8]) -> ConnectionCostMatrix
pub fn cost(&self, forward_id: u32, backward_id: u32) -> i32
Trait Implementations§
source§impl Clone for ConnectionCostMatrix
impl Clone for ConnectionCostMatrix
source§fn clone(&self) -> ConnectionCostMatrix
fn clone(&self) -> ConnectionCostMatrix
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for ConnectionCostMatrix
impl<'de> Deserialize<'de> for ConnectionCostMatrix
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectionCostMatrix
impl RefUnwindSafe for ConnectionCostMatrix
impl Send for ConnectionCostMatrix
impl Sync for ConnectionCostMatrix
impl Unpin for ConnectionCostMatrix
impl UnwindSafe for ConnectionCostMatrix
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